lmPartReg: Partial Regression Plot

View source: R/lmPartReg.R

lmPartRegR 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")

smallstuff documentation built on June 2, 2022, 5:06 p.m.