Description Usage Arguments Details Value Author(s) Examples
Performs input checking, flipping of coded and noncoded alleles, removal of individuals with missing data, constructs a subject-specific data matrix X, and returns X'X.
1 | make.moments2(params, phenolist, snpdata, weightvar)
|
params |
a data frame, see gtx.params. |
phenolist |
a list of phenotypic response variables and
covariates to be included in addition to genetic variables from |
snpdata |
a list with snpinfo and data, see snpdata. |
weightvar |
name of a variable in |
After extracting the necessary columns, any rows (individuals) with any missing data are removed.
A numeric matrix of second moments.
Toby Johnson Toby.x.Johnson@gsk.com
1 2 | data(mthfrex)
xtx <- make.moments2(mthfr.params, c("SBP", "DBP", "SexC", "Age"), mthfrex)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.