lmPartReg {smallstuff} | R Documentation |
Partial Regression Plot
Description
Plot the partial regression plot for one of the predictors of a linear model
Usage
lmPartReg(mod, pred, ...)
Arguments
mod |
A linear model object (obtained via the lm function) |
pred |
The name (in quotes) of the predictor for which the plot should be produced |
... |
Any other arguments to be passed to the plot |
Value
A partial regression plot for pred
in the linear model
mod
Examples
lmod=lm(mpg~.,mtcars)
lmPartReg(lmod,"wt")
[Package smallstuff version 1.0.3 Index]