Simulate covariates following a mixture of multivariate normal distribution
1 2 3 4 5 6 7 8 9 | rweSimuCov(
nPat,
muCov,
sdCov,
corCov,
mix.phi = 1,
cov.breaks = NULL,
seed = NULL
)
|
nPat |
number of patients |
muCov |
mean vector of covariates |
sdCov |
standard deviation vector of covariates |
corCov |
correlation of covariates |
mix.phi |
weight in mixture model |
cov.breaks |
breaks to cut covaraites into categories. If numeric, the same cuts will be applied to all covariates. If list, each covariates will be categorized based on its own breaks. If NULL, keep continuous. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.