missDeaths (version 2.7)

md.uniform: md.uniform

Description

Creates information of a uniformly distributed numeric or date covariate with the specified lower and upper limits. This function call must be added to the md.simparams object.

Usage

md.uniform(name, min = 0, max = 1)

Arguments

name

name of the covariate

min, max

lower and upper limits of the distribution. Must be finite (either numeric or date)

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
library(missDeaths)

sim = md.simparams() +
   md.uniform("X", 0, 1)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace