Learn R Programming

tsensembler (version 0.1.0)

embed_timeseries: Embedding a Time Series

Description

This function embeds a time series into an Euclidean space. This implementation is based on the function embed of stats package and has theoretical backgroung on reconstruction of attractors (see Takens, 1981). This shape transformation of the series allows for the use of any regression tool available to learn the time series. The assumption is that there are no long-term dependencies in the data.

Usage

embed_timeseries(timeseries, embedding.dimension)

Arguments

timeseries

a time series of class \"xts\".

embedding.dimension

an integer specifying the embedding dimension.

Value

An embedded time series

See Also

embed for the details of the embedding procedure.

Examples

Run this code
# NOT RUN {
require(xts)
ts <- as.xts(rnorm(100L), order.by = Sys.Date() + rnorm(100L))
embedded.ts <- embed.timeseries(ts, 20L)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab