Description Usage Arguments Value
View source: R/VAR-1-simulation.R
Given some starting values, coefficients and a sequence of error vectors,
create_arp_data
will compute a sequence of observables through a
univariate autoregressive model.
1 | create_arp_data(a, y0, e = rnorm(N), N = 100, intercept = FALSE)
|
a |
A numeric vector, specifying the lag coefficients. Its length
will determine the maximum lag order |
y0 |
A numeric vector, providing pre-sample observations. Its
length must be at minimum |
e |
A numeric vector, containing the innovations that hit the system. If unspecified, it will be drawn from a standard normal distribution. |
N |
An integer scalar. The sample size. Defaults to |
intercept |
A logical scalar. If the first entry of |
An numeric vector of length N
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.