lm_model | R Documentation |
Apply a linear model in parallel across each response $y$ in an outcome or mediation model. This is often useful for mediator models with few pretreatment variables, since each input is low-dimensional, even when there are many responses.
lm_model(progress = TRUE)
progress |
A logical indicating whether to show a progress bar during estimation. |
model An object of class model
with estimator, predictor, and
sampler functions associated wtih a linear model.
model
m <- lm_model()
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.