pca.ridge: Transform Ridge Estimates to PCA Space

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/pca.ridge.R

Description

The function pca.ridge transforms a ridge object from parameter space, where the estimated coefficients are β_k with covariance matrices Σ_k, to the principal component space defined by the right singular vectors, V, of the singular value decomposition of the scaled predictor matrix, X.

In this space, the transformed coefficients are V β_k, with covariance matrices

V Σ_k V^T

This transformation provides alternative views of ridge estimates in low-rank approximations.

Usage

1

Arguments

x

A ridge object, as fit by ridge

...

Other arguments passed down. Not presently used in this implementation.

Value

An object of class c("ridge", "pcaridge"), with the same components as the original ridge object.

Author(s)

Michael Friendly

References

Friendly, M. (2012). The Generalized Ridge Trace Plot: Visualizing Bias and Precision. In press, Journal of Computational and Graphical Statistics, 21.

See Also

ridge

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
longley.y <- longley[, "Employed"]
longley.X <- data.matrix(longley[, c(2:6,1)])

lambda <- c(0, 0.005, 0.01, 0.02, 0.04, 0.08)
lridge <- ridge(longley.y, longley.X, lambda=lambda)

plridge <- pca.ridge(lridge)
traceplot(plridge)
pairs(plridge)
# view in space of smallest singular values
plot(plridge, variables=5:6)

genridge documentation built on May 2, 2019, 5:46 p.m.