View source: R/simulate_data.R
| mvrarnorm | R Documentation |
Generate data from independent multivariate normal distribution with autocorrelation parameter
mvrarnorm(n, p, 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.
matrix of numeric values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.