Skip to contents

This default method gets rotated residuals from a fitted linear model using AUTO_VI$rotate_resid. User needs to override this method if the fitted model is not a linear regression model.

Usage

AUTO_VI$null_method(fitted_model = self$fitted_model)

Arguments

fitted_model

lm. A linear model object.

Value

A tibble with two columns .fitted and .resid.

Examples


my_vi <- auto_vi(fitted_model = lm(speed ~ dist, data = cars))
null_resid <- my_vi$null_method()
my_vi$plot_resid(null_resid)