View source: R/dgp-lib-errors.R
ar1_errors | R Documentation |
Generate correlated Gaussian errors based on an autoregressive(1) covariance structure.
ar1_errors(n, rho)
n |
Number of samples. |
rho |
Correlation. |
A vector of simulated errors with length n
.
errs <- ar1_errors(n = 100, rho = 0.7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.