find_pc_number.var_frac: Find PC number: fraction of variance.

find_pc_number.var_fracR Documentation

Find PC number: fraction of variance.

Description

The fraction of total variance retained for each PC is calculated by dividing each eigen value by the total sum of eigen values. The assumption behind the approach is that high variance surrogates high importance, which may be not true in the real data.

Usage

find_pc_number.var_frac(eigen_values, threshold = 0.9)

Arguments

eigen_values

A vector of eigen values. It is the item values of the item eigs of the returned value of pca123, which is returned by eigs.

threshold

A numeric scalar between 0 to 1 of the threshold of the fraction of variance. Default to 0.9.

Value

Depends on which method is called.


markgene/yamatClassifier documentation built on Oct. 14, 2024, 2:36 a.m.