Skip to contents

Accessor for Estimators

Usage

# S4 method for class 'model'
estimator(object)

Arguments

object

An object of class model, whose estimator function we want access to.

Value

A fitted version of the input model class.

Examples

m <- rf_model()
fit <- estimator(m)(mpg ~ hp + wt, data = mtcars)