Creates information of a covariate that contains a fixed value (either numeric or date). This function call must be added to the md.simparams object.
md.simparams
md.constant(name, value)
name of the covariate
value of the covariate
# NOT RUN { # } # NOT RUN { library(missDeaths) sim = md.simparams() + md.constant("start", as.Date("1990-1-1")) # }
Run the code above in your browser using DataLab