Embed | R Documentation |
Reorganizes a single 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 |
Numeric vector. An observed time series to be reorganized into a time-delayed embedded matrix. |
E |
Numeric (length = 1).
Number of embedded dimensions or the number of observations to
be used. |
tau |
Numeric (length = 1).
Number of observations to offset successive embeddings.
A tau of one uses adjacent observations.
Default is |
Returns a numeric matrix
Pascal Deboeck <pascal.deboeck at psych.utah.edu> and Alexander P. Christensen <alexpaulchristensen@gmail.com>
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
time_series <- 49:56
# Time series embedding
Embed(time_series, E = 5, tau = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.