md.binom | R Documentation |
Creates information of a Bernoulli distributed covariate with the specified probability.
This function call must be added to the md.simparams
object.
md.binom(name, prob = 0.5)
name |
name of the covariate |
prob |
probability of success (having a value of 1) |
## Not run:
library(missDeaths)
sim = md.simparams() +
md.binom("X", 0.25)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.