md.binom: md.binom

View source: R/library.R

md.binomR 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)


missDeaths documentation built on Oct. 7, 2024, 1:25 a.m.