md.constant {missDeaths} | R Documentation |
md.constant
Description
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.
Usage
md.constant(name, value)
Arguments
name |
name of the covariate |
value |
value of the covariate |
Examples
## Not run:
library(missDeaths)
sim = md.simparams() +
md.constant("start", as.Date("1990-1-1"))
## End(Not run)
[Package missDeaths version 2.7 Index]