missDeaths (version 2.7)

md.constant: 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

Run this code
# 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