anova.princomp: Component variation in PCA analysis

Description Usage Arguments Details Value See Also Examples

View source: R/anova.princomp.R

Description

Calculate percent of explained variance for Principal Component Analysis objects.

Usage

1
2
## S3 method for class 'princomp'
anova(object, ...)

Arguments

object

object of class princomp

...

other arguments currently not supported

Details

The function calculates percentages of variance explained for each component resulting from Principal Component Analysis. The variance is equal to:

sigma^2 / sum( sigma^2 ) * 100

where sigma is equal to component's standard deviation.

Value

A vector of length equal to a number of components existing in object. Each element containes the percent of variance explained by the corresponding component.

See Also

princomp, anova

Examples

1
2
3
pcmodel <- princomp( USArrests, cor=TRUE )
pcmodel
anova(pcmodel) # variance prc.

mbojan/mbtools documentation built on Nov. 9, 2017, 3:21 p.m.