md.simparams {missDeaths} | R Documentation |
md.simparams
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
md.simparams()
See Also
md.constant
, md.uniform
, md.binom
, md.norm
, md.mvnorm
, md.sex
, md.exp
, md.death
Examples
## 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)
[Package missDeaths version 2.7 Index]