View source: R/simulate_data.R
| rarnorm | R Documentation |
Generate data from normal distribution with autocorrelation parameter
rarnorm(n, mean = 0, sd = 1, phi = 0)
n |
number of observations. |
mean |
marginal mean |
sd |
marginal standard deviation |
phi |
autocorrelation parameter (-1 < phi < 1) |
Note that, unlike stats::rnorm(), this function is
not vectorized over mean, sd, or phi.
vector of numeric values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.