demo_lts | R Documentation |
Creates a time series based on the supplied model, then generate a demo about its latent structure
demo_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 |
... |
Additional parameters passed to |
This function accepts either a ts.model
object (e.g. AR1(phi = .3, sigma2 =1) + WN(sigma2 = 1)) or a gmwm
object.
Wenchao
# AR set.seed(1336) model = AR1(phi = .99, sigma = 1) + WN(sigma2=1) demo_lts(1000, model) # Modify the graph aesthetics demo_lts(100, model, line.color = c('blue', 'green', 'black'), point.size = c(1,1,1), process = c('AR1', 'WN', 'Sum'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.