cBernDCP: Generate binary data with decaying-product correlated...

Description Usage Arguments Value Examples

View source: R/cBernDCP.R

Description

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

Usage

1
cBernDCP(n, p, rho)

Arguments

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.

Value

an n*p matrix of binary data

Examples

1
X <- cBernDCP(10, rep(0.5,3), c(0.2,0.2))

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

Related to cBernDCP in CorBin...