# Principle Component Analysis (PCA)

## Contents

## Description

Principal Component Analysis (PCA) is a multivariate analysis technique to transform a set of variables into a smaller set of uncorrelated components that accounts for the maximum variance in the data set. The calculation in R is done by a singular value decomposition (SVD) of the (centered and possibly scaled) data matrix, not by using eigen on the covariance matrix. This is generally the preferred method for numerical accuracy.

An explanation of the fundamentals of Principle Component Analysis can be found here

## Inputs

*– the name of your PCA analysis*

**Name*** PCA Dataset Input* – select a dataset that contains the variables of interest.

* Principal Component Analysis Variables* – The set of independent variables that you would like to analyse

* PCA Scale* – a logical value indicating whether the variables should be scaled to have unit variance before the analysis takes place. The default is FALSE, but in general scaling is advisable.

* PCA RetX* – a logical value indicating whether the rotated variables should be returned. X is a numeric or complex matrix (or data frame) which provides the data for the principal components analysis.

*Tools > Statistical Analysis > PCA >*

**enter parameters**

*> Add Tools > Show/Hide > Execute*]

## Outputs

*Standard Deviation*

**Sdev:**** Rotation Matrix **: the matrix of variable loadings (i.e., a matrix whose columns contain the eigenvectors).

** Center** : the means that were subtracted.

** Scale** : the scalings applied to each variable. Scale is not shown if PCA Scale is not enabled.

** Predict PCA X** : a numeric matrix or data frame which provides the data for the principal components analysis.

** Standard deviation **: the standard deviations of the principal components

** Proportion of Variance** : Percent variance explained individually

** Cumulative Proportion** : percent variance explained cumulatively

## Advanced

## References

- An Introduction to R 2.14.1 (2011-12-22).
- Dunteman, G. H. (1989) Principal Components Analysis, SAGE Publications, Inc, Newbury Park.
- Jolliffe, I. T. (2002) Principal Components Analysis (Second Edition), Springer, New York.
- Mardia, K. V., J. T. Kent and J. M. Bibby (1979) Multivariate Analysis, Academic Press, London.
- WIKIPEDIA (http://en.wikipedia.org/wiki/Singular_value_decomposition)