RXshrink (version 2.3)

plot.RXpredict: Plot method for RXpredict objects

Description

Plot Predicted and/or Fitted.Values for all 5 RXshrink regression estimation methods. The default is to plot Predictions for the y-Outcome variable.

Usage

# S3 method for RXpredict
plot(x, fit = "yvecprd", ... )

Value

NULL

Arguments

x

Output list object of class RXpredict.

fit

One of three possible options:, "yvecprd" to display Predictions of the Observed y-Outcomes in a single plot, "cryprd" to display Fitted.Values for the Centered and Rescaled y-Outcomes, "both" to display "yvecprd" and "cryprd" plots in two rows on one page.

...

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

Author

Bob Obenchain <wizbob@att.net>

Examples

Run this code
  data(longley2)
  form <- Employed~GNP+GNP.deflator+Unemployed+Armed.Forces+Population+Year
  rxefobj <- eff.ridge(form, longley2)
  rxefprd <- RXpredict(rxefobj, longley2)
  plot(rxefprd)
  # Clearly Biased predictions can still represent an "Optimal" Variance-Bias Trade-Off...

Run the code above in your browser using DataLab