AUTO_VI$null_method {autovi} | R Documentation |
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.
AUTO_VI$null_method(fitted_model = self$fitted_model)
fitted_model |
|
A tibble with two columns .fitted
and .resid
.
my_vi <- auto_vi(fitted_model = lm(speed ~ dist, data = cars))
null_resid <- my_vi$null_method()
my_vi$plot_resid(null_resid)