correlated_binomial | R Documentation |
Simulate two correlated binomial variables
correlated_binomial(nid, p1, p2, rho, n = 2, round = TRUE, print = FALSE)
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 |
Matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.