cBern1dep {CorBin} | R Documentation |
Equivalent to cBern(n, p, rho, type="1-dependent")
cBern1dep(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 <- cBern1dep(5, c(0.4,0.5,0.6), c(0.2,0.3))