RXshrink (version 1.4.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", … )

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 as rows on one page.

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

Value

NULL

Examples

Run this code
# NOT RUN {
  data(longley2)
  form <- Employed~GNP+GNP.deflator+Unemployed+Armed.Forces+Population+Year
  rxuobj <- unr.ridge(form, longley2)
  rxuprd <- RXpredict(rxuobj, longley2)
  plot(rxuprd)
  # Clearly Biased predictions can still represent "Optimal" Variance-Bias Trade-Offs...
# }

Run the code above in your browser using DataLab