md.mvnorm: md.mvnorm

Description Usage Arguments Examples

View source: R/library.R

Description

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.

Usage

1

Arguments

names

vector of covariate names

means

vector of means, default is rep(0, length(names))

cov

covariance matrix, default is diag(ncol(names))

Examples

1
2
3
4
5
6
7
## 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)

missDeaths documentation built on Oct. 23, 2020, 6:39 p.m.