runPCA: Perform principal component analysis on traits

Description Usage Arguments Value

Description

Perform principal component analysis on traits

Usage

1

Arguments

df

A regressed dataframe of HTA traits for PCA

Value

pca_obj, a PCA object output from princomp; loadings, a vector of loadings for each HTA trait into each PC; cumsums, a matrix of cumulative sums of variance explained by each PC; RIAILPCphenos, a dataframe of PC values for each strain; corr_PC_trait, correlation of each trait to each PC


AndersenLab/easysorter documentation built on Nov. 27, 2020, 4:26 a.m.