md.simparams | R Documentation |
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
md.simparams()
md.constant
, md.uniform
, md.binom
, md.norm
, md.mvnorm
, md.sex
, md.exp
, md.death
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.