plot.RXpredict | R Documentation |
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", ... )
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(). |
NULL
Bob Obenchain <wizbob@att.net>
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...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.