Learn R Programming

CorBin (version 1.0.0)

cBernEx: 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

Run this code
# NOT RUN {
X <- cBernEx(10, rep(0.5,3), 0.5)
# }

Run the code above in your browser using DataLab