cBernEx {CorBin}R Documentation

Generate binary data with exchangeable correlated structure

Description

Equivalent to cBern(n, p, rho, type="exchange")

Usage

cBernEx(n, p, rho)

Arguments

n

number of observations

p

the vector of marginal probabilities with dimension m

rho

a non-negative value indecating the shared correlation coefficient

Value

an n*p matrix of binary data

Examples

X <- cBernEx(10, rep(0.5,3), 0.5)

[Package CorBin version 1.0.0 Index]