simBernCovar: Simulates a block mixture of Bernoulli covariates.

Description Usage Arguments Value Examples

Description

Simulates a block mixture of Bernoulli covariates.

Usage

1
simBernCovar(covProbMat, nMembers)

Arguments

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.

Value

A matrix of Bernoulli covariates with a block probability structure.

Examples

1
2
3
covProbMat = matrix(c(.8, .2, .2, .8), nrow = 2)
nMembers = c(50, 50)
simBernCovar(covProbMat, nMembers)

norbertbin/SpecClustPack documentation built on May 23, 2019, 9:32 p.m.