View source: R/treatment_effect.R
estimate_model | R Documentation |
Function to estimate outcome models
estimate_model(data, causalWeights, model.function, separate.estimation, ...)
data |
A |
causalWeights |
A causalWeights object |
model.function |
The model function passed by the user |
separate.estimation |
TRUE or FALSE, should models be estimated separately in each group? |
... |
Extra agruments passed to the predict functions |
a list with slots y_hat_0
, y_hat_1
, and fit
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.