PLS_Toolbox Documentation: varcap< updatemod varimax >

varcap

Purpose

Variance captured for each variable in PCA model.

Synopsis

 

vc = varcap(x,loads,scl,plots)

Description

VARCAP calculates and displays the percent variance captured for each variable and number of principal components in a PCA model.

Inputs are the properly scaled M by N data x (i.e. scaled using the same scaling used when creating the PCA model) with associated N by K loadings matrix loads.

Optional input scl (1 by N) specifies the x-axis for plotting. Optional input plots suppresses plotting when set to 0 {default = 1}.

The output is a K by N matrix of variance captured vc for each variable and each number of PCs considered (vc is number of PCs by number of variables). A stacked bar chart of vc is also plotted. Optional input plots suppresses plotting when set to 0 {default = 1}.

See Also

analysis, pca


< updatemod varimax >