filter.pca: Filter PCs

Description Usage Arguments Value

View source: R/filter.pca.R

Description

Filter out PCs colinear with other covariates.

Usage

1
filter.pca(PCA, covs = NULL, 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 prcomp() list output with PCs filtered


wcrump/GWASP documentation built on April 4, 2020, 5:54 a.m.