AUTO_VI-cash-get_data: Get data out of a model object

AUTO_VI$get_dataR Documentation

Get data out of a model object

Description

This function gets the data out of a model object by using stats::model.frame() if self$data is NULL.

Usage

AUTO_VI$get_data(fitted_model = self$fitted_model)

Arguments

fitted_model

Model. A model object, e.g. lm.

Value

A tibble.

Examples


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

autovi documentation built on April 3, 2025, 11:04 p.m.