Measures the absolute difference between an estimated and the true average treatment effect: $$\epsilon_{ATE} = | \widehat{ATE} - ATE |$$ Requires the true ATE, so it is only usable with (semi-)synthetic benchmark data such as sodium or ihdp_train.

eps_ate(ate_true, ate_pred)

Arguments

ate_true

True ATE (a single number).

ate_pred

Estimated ATE. Either a number or a "causalmlr_ate" object as returned by ate_naive() and friends.

Value

A single non-negative number.

See also

Examples

data(sodium)
est <- ate_naive(sodium, outcome = "bp", treatment = "sodium")
eps_ate(1.05, est)
#> [1] 4.129692