Learn R Programming

RXshrink (version 2.0)

plot.eff.ridge: Plot method for eff.ridge objects

Description

Plot TRACE displays for the "efficient" Path that is [1] as short as possible and [2] consists of a Two-Piece Linear-Splines with a emphSingle Interior Knot at the MSE Optimal m-Extent of Shrinkage. The default is to display all five Traces on one page with no legends.

Usage

# S3 method for eff.ridge
plot(x, trace = "all", trkey = FALSE, … )

Arguments

x

Output list object of class eff.ridge.

trace

One of seven possible options: "all" to display 5 traces in one graph, "seq" to display 5 full-sized traces in sequence in response to user prompts, "coef" to display only the estimated beta coefficient trace, "rmse" to display only the estimated relative MSE risk trace, "exev" to display only the estimated excess MSE eigenvalue (OLS minus larlso), "infd" to display only the estimated inferior direction cosine trace, or "spat" to display only the delta-factor pattern trace.

trkey

If TRUE, display a crude legend at the bottom of each trace plot.

Optional argument(s) passed on to plot().

Value

NULL

Examples

Run this code
# NOT RUN {
  data(longley2)
  form <- GNP~GNP.deflator+Unemployed+Armed.Forces+Population+Year+Employed
  rxefobj <- eff.ridge(form, data=longley2)
  plot(rxefobj)
# }

Run the code above in your browser using DataLab