Simulate two correlated binomial variables

correlated_binomial(nid, p1, p2, rho, n = 2, round = TRUE, print = FALSE)

Arguments

nid

Number of samples

p1

Frequency 1

p2

Frequency 2

rho

Target correlation

n

Binomial parameter, should be 2 (default) for genotypes

round

Round or not Default=TRUE

print

Print or not Default=FALSE

Value

Matrix