lts | R Documentation |
Create a lts
object based on a supplied matrix or data frame.
lts(data, start = 0, end = NULL, freq = 1, unit = NULL, name = NULL, process = NULL)
data |
A multiple-column |
start |
A |
end |
A |
freq |
A |
unit |
A |
name |
A |
process |
A |
A lts
object with the following attributes:
The time of the first observation
The time of the last observation
Numeric representation of frequency
String representation of the unit
Name of the dataset
A vector
that contains model names of decomposed and combined processes
Wenchao
model1 = AR1(phi = .99, sigma2 = 1) model2 = WN(sigma2 = 1) col1 = gen_gts(1000, model1) col2 = gen_gts(1000, model2) testMat = cbind(col1, col2, col1+col2) testLts = lts(testMat, unit = 'sec', process = c('AR1', 'WN', 'AR1+WN')) plot(testLts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.