pc.var: A function to calculate variance explained by each Principal...

Description Usage Arguments Value

View source: R/pc.var.R

Description

This function returns the variance explained by each PC and the cumulative variance explained in the medals package, this should be used with the output of imaging.cp

Usage

1
pc.var(mat, n)

Arguments

mat

The crossproduct matrix, this can be the output of imaging.cp

n

The number of observations in the original matrix. This can be the output for imaging.suff.stat

Value

List of 2 elements: var: variance of each component, cum_pct: cumulative percent variance explained


neuroconductor/medals documentation built on Oct. 18, 2020, 11:51 a.m.