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, ...)
an lm
, glm
or svyglm
object.
character, the name of an explanatory variable in the model
logical, if TRUE
, bootstrap smoothers will overlay the graph. By default this is TRUE
if there are between 30 and 4000 observations in the model, otherwise it is FALSE
.
logical, if TRUE
, the iNZightPlots package will be used for plotting.
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