Function to estimate outcome models
estimate_model(data, causalWeights, model.function, separate.estimation, ...)
a list with slots y_hat_0
, y_hat_1
, and fit
.
A dataHolder()
object
A causalWeights object
The model function passed by the user
TRUE or FALSE, should models be estimated separately in each group?
Extra agruments passed to the predict functions