eval_mte: Evaluate Marginal Treatment Effects from a Fitted MTE Model.
Description
eval_mte is a function that evaluates marginal treatment effects at any
combination of covariates x and latent resistance u from a fitted
mte object. Note that the estimation may involve substantial extrapolation
when the propensity score has a limited support.
# NOT RUN {mte_fit <- mte(selection = d ~ x + z, outcome = y ~ x,
method = "localIV", data = toydata)
u <- seq(0.05, 0.95, 0.05)
mte_u <- eval_mte(mte_fit, u = u)
plot(mte_u ~ u, type = "b")
# }