cBernEx: Generate binary data with exchangeable correlated structure

Description Usage Arguments Value Examples

View source: R/cBernEx.R

Description

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

Usage

1
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

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

CorBin documentation built on Nov. 15, 2020, 1:06 a.m.

Related to cBernEx in CorBin...