AUTO_VI$null_method {autovi} | R Documentation |
Get null residuals from a fitted model
Description
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 |
|
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)
[Package autovi version 0.4.0 Index]