rweSimuCov: Simulate covariates following a mixture of multivariate...

Description Usage Arguments

View source: R/rwe_simu.R

Description

Simulate covariates following a mixture of multivariate normal distribution

Usage

1
2
3
4
5
6
7
8
9
rweSimuCov(
  nPat,
  muCov,
  sdCov,
  corCov,
  mix.phi = 1,
  cov.breaks = NULL,
  seed = NULL
)

Arguments

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.


olssol/rwetools documentation built on April 18, 2021, 11:42 a.m.