Varcap: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy (Importing text file) |
||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Variance captured for each variable in PCA model. | Variance captured for each variable in PCA model. | ||
===Synopsis=== | ===Synopsis=== | ||
:vc = varcap(x,loads,''scl,plots'') | :vc = varcap(x,loads,''scl,plots'') | ||
===Description=== | ===Description=== | ||
VARCAP calculates and displays the percent variance captured for each variable and number of principal components in a PCA model. | 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. | 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}. | 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}. | 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=== | ===See Also=== | ||
[[analysis]], [[pca]] | [[analysis]], [[pca]] |
Revision as of 15:27, 3 September 2008
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}.