plot.RXpredict {RXshrink}R Documentation

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

Value

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

[Package RXshrink version 2.3 Index]