cBernDCP {CorBin} | R Documentation |
Equivalent to cBern(n, p, rho, type="DCP")
cBernDCP(n, p, rho)
n |
number of observations |
p |
the vector of marginal probabilities with dimension m |
rho |
either a non-negative value indecating the shared correlation coefficient or and m-1 vector indicating the correlation coefficients between adjacent variables. |
an n*p matrix of binary data
X <- cBernDCP(10, rep(0.5,3), c(0.2,0.2))