View source: R/plugin-estimates.R
fit_effect | R Documentation |
This function prepares data, fits the appropriate model and returns the resulting estimates in a standardized format.
fit_effect(full_data, weight_col, fx_col, ..., .Model_cfg)
full_data |
The full dataset of interest for the modelling problem. |
weight_col |
The unquoted weighting variable name to use in model fitting. |
fx_col |
The unquoted column name of the pseudo-outcome. |
... |
The unquoted names of covariates to use in the model. |
.Model_cfg |
A |
A list with one element, fx
. This element contains a Predictor
object of
the appropriate subclass corresponding to the Model_cfg
fit to the data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.