getNbPCsMinimAvgSqPartCor: Choose the number of PCs

View source: R/stats.R

getNbPCsMinimAvgSqPartCorR Documentation

Choose the number of PCs

Description

Return the number of PCs that minimizes the average squared partial correlation, from Shriner (Heredity, 2011).

Usage

getNbPCsMinimAvgSqPartCor(X)

Arguments

X

matrix (e.g. genotypes in 0,1,2 with SNPs in rows and individuals in columns)

Value

integer

Author(s)

Daniel Shriner [aut], Timothee Flutre [cre]


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.