md.binom {missDeaths}R Documentation

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


## Not run: 
library(missDeaths)

sim = md.simparams() +
   md.binom("X", 0.25)

## End(Not run)


[Package missDeaths version 2.7 Index]