Learn R Programming

causalOT (version 1.0.2)

estimate_model: Function to estimate outcome models

Description

Function to estimate outcome models

Usage

estimate_model(data, causalWeights, model.function, separate.estimation, ...)

Value

a list with slots y_hat_0, y_hat_1, and fit.

Arguments

data

A dataHolder() object

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