Embed {EGAnet} | R Documentation |
Reorganizes an individualâ€™s observed time series into an embedded matrix. The embedded matrix is constructed with replicates of an individual time series that are offset from each other in time. The function requires two parameters, one that specifies the number of observations to be used (i.e. the number of embedded dimensions) and the other that specifies the number of observations to offset successive embeddings.
Embed(x, E, tau)
x |
Vector. An observed time series to be reorganized into a time-delayed embedded matrix. |
E |
Integer.
Number of embedded dimensions or the number of observations to be used. For example,
an |
tau |
Integer.
Number of observations to offset successive embeddings. A tau of one uses adjacent observations.
Default is |
Returns a matrix containing the embedded matrix.
Pascal Deboeck <pascal.deboeck at psych.utah.edu>
Deboeck, P. R., Montpetit, M. A., Bergeman, C. S., & Boker, S. M. (2009) Using derivative estimates to describe intraindividual variability at multiple time scales. Psychological Methods, 14, 367-386.
# A time series with 8 time points
tseries <- 49:56
embed.tseries <- Embed(tseries, E = 4, tau = 1)