Statistics Toolbox    
pcares

Residuals from a Principal Components Analysis

Syntax

Description

pcares(X,ndim) returns the residuals obtained by retaining ndim principal components of X. Note that ndim is a scalar and must be less than the number of columns in X. Use the data matrix, not the covariance matrix, with this
function.

Example

This example shows the drop in the residuals from the first row of the Hald data as the number of component dimensions increase from one to three.

Reference

[1]  Jackson, J. E., A User's Guide to Principal Components, John Wiley and Sons, Inc. 1991. pp. 1-25.

See Also
barttest, pcacov, princomp


  pcacov pdf