cBernEx {CorBin} | R Documentation |
Equivalent to cBern(n, p, rho, type="exchange")
cBernEx(n, p, rho)
n |
number of observations |
p |
the vector of marginal probabilities with dimension m |
rho |
a non-negative value indecating the shared correlation coefficient |
an n*p matrix of binary data
X <- cBernEx(10, rep(0.5,3), 0.5)