md.mvnorm | R Documentation |
Creates information of a vector of multi-normal covariates with the specified array of means and covariance matrix.
This function call must be added to the md.simparams
object.
md.mvnorm(names, means = rep(0, length(names)), cov = diag(ncol(names)))
names |
vector of covariate names |
means |
vector of means, default is |
cov |
covariance matrix, default is |
## Not run:
library(missDeaths)
sim = md.simparams() +
md.mvnorm(c("X1", "X2"), c(100, 0), matrix(c(225, 3, 2, 1), 2, 2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.