GenCovar {AllelicSeries}R Documentation

Generate Covariates

Description

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.

Usage

GenCovar(n)

Arguments

n

Sample size.

Value

(n x 6) numeric matrix.


[Package AllelicSeries version 0.0.4.1 Index]