View source: R/regressionplots.R
PredictionPlot | R Documentation |
Plots the observed, predict and an independent variable from a regression model.
PredictionPlot(Regression.object, predictor.number = NULL)
Regression.object |
The model. |
predictor.number |
The index of the predictor to be used in the plot, where 1 means the first predictor. |
With numeric predicts, other variables are assumed to have an average effect. With factors, the first level is from the intercept, and the other levels are the intercept plus the parameter (thus, if you modify the contrats, this plot will not display the predicted values correctly).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.