brStick: Broken Stick Stopping Rule

Description Usage Arguments See Also Examples

View source: R/brStick.R

Description

This function is a criterion for choosing the number of principal components.

Usage

1

Arguments

x

numeric, a vector of the eigenvalues of the principal components.

plot

boolean default is FALSE, toggle plot.

See Also

rbrStick

Examples

1
2
3
4
5
summary(pc.cr <- princomp(USArrests, cor = TRUE))
brStick(pc.cr$sdev ** 2)

# Show plot
brStick(pc.cr$sdev ** 2, plot = TRUE)

alstat/face documentation built on May 10, 2017, 11:14 p.m.