gen_lts | R Documentation |
Create a lts
object based on a supplied time series model.
gen_lts(n, model, start = 0, end = NULL, freq = 1, unit = NULL, name = NULL, process = NULL)
n |
An |
model |
A |
start |
A |
end |
A |
freq |
A |
unit |
A |
name |
A |
process |
A |
This function accepts either a ts.model
object (e.g. AR1(phi = .3, sigma2 =1) + WN(sigma2 = 1)) or a gmwm
object.
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
JJB, Wenchao
# AR set.seed(1336) model = AR1(phi = .99, sigma2 = 1) + WN(sigma2 = 1) test = gen_lts(1000, model) plot(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.