filter.pca: Filter out PCs colinear with other covariates.

Description Usage Arguments Value

View source: R/filter.pca.function.R

Description

Filter out PCs colinear with other covariates.

Usage

1
filter.pca(PCA, covs, threshold = 0.2)

Arguments

PCA

The output list from the prcomp() function.

covs

A matrix/data.frame of covariates (rows = individuals, columns = covariates)

threshold

A numerical value (0-1) indicating the maximum allowed correlation between any one covariate and any one PC

Value

A matrix of filtered PCs (not correlated with any covariates supplied by user)


wcrump/GWAS.GLM documentation built on March 30, 2020, 3:17 a.m.