sim_gmat | R Documentation |
Simulates a n x q genetic matrix with the option to specify the common pairwise correlation.
sim_gmat(n,q,rho)
n |
Total number of observations. |
q |
Total number of SNPs. |
rho |
Common pairwise correlation parameter. |
The result of a n x q genetic matrix of q SNPs.
# Set sample size n = 100 # Set number of SNPs q = 5 # Set common pairwise correlation rho = 0.1 # Simulate genetic matrix gMat <- sim_gmat(n, q, rho)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.