rvsr_plot_shiny: Residual vs regressors plot for shiny app

Description Usage Arguments Examples

Description

Graph to determine whether we should add a new predictor to the model already containing other predictors. The residuals from the model is regressed on the new predictor and if the plot shows non random pattern, you should consider adding the new predictor to the model.

Usage

1
rvsr_plot_shiny(model, data, variable)

Arguments

model

An object of class lm.

data

A dataframe or tibble.

variable

Character; new predictor to be added to the model.

Examples

1
2
model <- lm(mpg ~ disp + hp + wt, data = mtcars)
rvsr_plot_shiny(model, mtcars, 'drat')

cmlopera/olsrr documentation built on May 26, 2019, 10:34 a.m.