| partialResPlot {iNZightRegression} | R Documentation |
This function draws partial residual plots for a continuous explanatory variables in a given model.
partialResPlot( fit, varname, showBootstraps = nrow(fit$model) >= 30 & nrow(fit$model) < 4000, use.inzightplots = FALSE, env = parent.frame() ) allPartialResPlots(fit, ...)
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' |
No return value, called for side-effect of producing a plot.
allPartialResPlots(): Cycle through all partial residual plots
David Banks, Tom Elliott.
m <- lm(Sepal.Length ~ Sepal.Width + Petal.Width, data = iris) partialResPlot(m, "Sepal.Width") allPartialResPlots(lm(Sepal.Length ~ Sepal.Width + Petal.Width, data = iris))