Description Usage Arguments Value Examples
Simulates a block mixture of Bernoulli covariates.
1 | simBernCovar(covProbMat, nMembers)
|
covProbMat |
A matrix with each row corresponding to a block and each column corresponding to a covariate. The values are Bernoulli probabilities. |
nMembers |
The number of nodes in each block. |
A matrix of Bernoulli covariates with a block probability structure.
1 2 3 | covProbMat = matrix(c(.8, .2, .2, .8), nrow = 2)
nMembers = c(50, 50)
simBernCovar(covProbMat, nMembers)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.