fit_plugin: Fits a plugin model using the appropriate settings

View source: R/plugin-estimates.R

fit_pluginR Documentation

Fits a plugin model using the appropriate settings

Description

This function prepares data, fits the appropriate models and returns the resulting estimates in a standardized format.

Usage

fit_plugin(full_data, weight_col, outcome_col, ..., .Model_cfg)

Arguments

full_data

The full dataset of interest for the modelling problem.

weight_col

The unquoted weighting variable name to use in model fitting.

outcome_col

The unquoted column name to use as a label for the supervised learning problem.

...

The unquoted names of covariates to use in the model.

.Model_cfg

A Model_cfg object configuring the appropriate model type to use.

Value

A new Predictor object of the appropriate subclass corresponding to the Model_cfg fit to the data.


tidyhte documentation built on Aug. 14, 2023, 5:08 p.m.