Learn R Programming

multimedia (version 0.2.0)

estimator,model-method: Accessor for Estimators

Description

Accessor for Estimators

Usage

# S4 method for model
estimator(object)

Value

A fitted version of the input model class.

Arguments

object

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

Examples

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

Run the code above in your browser using DataLab