estimator | R Documentation |
This defines a generic estimator function, which can be applied to different multimedia model objects. It creates a unified interface to estimating diverse mediation and outcome model families.
estimator(object)
estimator(object)
object |
A model object that we want to estimate. |
A function that can be called with formula and data arguments, like
A fitted version of the input model class.
m <- lm_model()
estimator(m)(mpg ~ hp + wt, data = mtcars)
m <- rf_model()
fit <- estimator(m)(mpg ~ hp + wt, data = mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.