missDeaths (version 2.7)

md.simparams: 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()

Arguments

See Also

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

Examples

Run this code
# NOT RUN {
# }
# 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") 
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace