Borrar filtros
Borrar filtros

Best way to regress longitudinal data with variable (down to 1) time-points?

3 visualizaciones (últimos 30 días)
I have a data set containing longitudinal data, however time-points are variable, and many records actually have only one. See plot below for reference, where points linked by a line indicate a time-series with more than one time-point.
Simple linear regression would not take into consideration the longitudinal information of the records with more than one time-point.
So what is the best way to regress this data?

Respuestas (1)

Krishna
Krishna el 27 de Dic. de 2023
Hello Antonio,
If I understand correctly, you're referring to the challenge of handling time series data with varying lengths. There are several strategies to manage such datasets effectively.
One approach is to employ models like Recurrent Neural Networks (RNNs), which are designed to process sequences of data. For instance, consider a sequence like [a b c d e ...] of any given length. You could construct a new dataset for the RNN where 'n' consecutive values are used to predict the subsequent value. Let's say we choose 'n' to be 2; in this case, we would feed 'a' and 'b' into a standard RNN to forecast the value of 'c'. By using this method, you can reformat your data in a way that the inconsistency in the time series lengths won’t matter.
Plain Recurrent Neural Networks (RNNs) often encounter significant issues with vanishing and exploding gradients. To address these challenges, you might consider utilizing architectures such as Long Short-Term Memory (LSTM) networks. However, the method of preparing your dataset would remain consistent regardless of the network type you choose.
Time series having only one value carry no meaning as such and can be removed.
For training RNN and LSTM please go through this documentation respectively,
Also, to look at problems related to RNN please go through this link,
Hope this helps.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by