AUTO_VI$boot_method | R Documentation |
This default method gets bootstrapped residuals from a fitted linear model by sampling the observations with replacement then refit the model. User needs to override this method if a different bootstrapping scheme is needed.
AUTO_VI$boot_method( fitted_model = self$fitted_model, data = self$get_data() )
fitted_model |
|
data |
Data frame. The data used to fit the model.
See also |
A tibble with two columns .fitted
and .resid
.
my_vi <- auto_vi(fitted_model = lm(speed ~ dist, data = cars))
null_resid <- my_vi$boot_method()
my_vi$plot_resid(null_resid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.