partialResPlot {iNZightRegression} | R Documentation |
Partial residual plot of continuous variable
Description
This function draws partial residual plots for a continuous explanatory variables in a given model.
Usage
partialResPlot(
fit,
varname,
showBootstraps = nrow(fit$model) >= 30 & nrow(fit$model) < 4000,
use.inzightplots = FALSE,
env = parent.frame()
)
allPartialResPlots(fit, ...)
Arguments
fit |
an |
varname |
character, the name of an explanatory variable in the model |
showBootstraps |
logical, if |
use.inzightplots |
logical, if |
env |
environment where the data is stored for bootstrapping |
... |
additional arguments passed to 'partialResPlot' |
Value
No return value, called for side-effect of producing a plot.
Functions
-
allPartialResPlots()
: Cycle through all partial residual plots
Author(s)
David Banks, Tom Elliott.
Examples
m <- lm(Sepal.Length ~ Sepal.Width + Petal.Width, data = iris)
partialResPlot(m, "Sepal.Width")
allPartialResPlots(lm(Sepal.Length ~ Sepal.Width + Petal.Width, data = iris))
[Package iNZightRegression version 1.3.4 Index]