md.simparams: md.simparams

Description Usage See Also Examples

View source: R/library.R

Description

Constructs an md.simparams object that holds the parameters required to generate the simulated data set. The parameters specifying covariates and event time variables are appended to the md.simparams by adding the appropriate function call

Usage

1

See Also

md.constant, md.uniform, md.binom, md.norm, md.mvnorm, md.sex, md.exp, md.death

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(missDeaths)

sim = md.simparams() +
   md.sex("sex", 0.5) + 
   md.uniform("birth", as.Date("1930-1-1"), as.Date("1970-1-1")) +
   md.uniform("start", as.Date("2005-1-1"), as.Date("2010-1-1")) +
   md.death("death", survexp.us, "sex", "birth", "start") 

## End(Not run)

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