View source: R/generate_data.R
GenCovar | R Documentation |
Generate an (n x 6) covariate matrix with columns representing an intercept, age, sex, and 3 genetic PCs. Because these simulations address rare variant analysis, correlation between genotypes and the genetic PCs (based on common variants) is unnecessary.
GenCovar(n)
n |
Sample size. |
(n x 6) numeric matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.