missDeaths (version 2.7)

md.binom: md.binom

Description

Creates information of a Bernoulli distributed covariate with the specified probability. This function call must be added to the md.simparams object.

Usage

md.binom(name, prob = 0.5)

Arguments

name

name of the covariate

prob

probability of success (having a value of 1)

Examples

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

sim = md.simparams() +
   md.binom("X", 0.25)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab