plot.RXpredict function

Plot method for RXpredict objects

Plot method for RXpredict objects

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

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

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().

Returns

NULL

Author(s)

Bob Obenchain wizbob@att.net

Examples

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...
  • Maintainer: Bob Obenchain
  • License: GPL-2
  • Last published: 2023-08-07