md.binom: md.binom

Description Usage Arguments Examples

View source: R/library.R

Description

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

Usage

1
md.binom(name, prob = 0.5)

Arguments

name

name of the covariate

prob

probability of success (having a value of 1)

Examples

1
2
3
4
5
6
7
## Not run: 
library(missDeaths)

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

## End(Not run)

missDeaths documentation built on Oct. 23, 2020, 6:39 p.m.