Description Usage Arguments Value Examples
Functions to estimate the average treatment effect
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | ate(this_data, specific_ate, ...)
naive_ate(this_data, ...)
ipw1_ate(this_data, ...)
ipw2_ate(this_data, ...)
ipw3_ate(this_data, ...)
strat_ate(this_data, ...)
rf_ate(this_data, outcome_fm, ...)
cart_ate(this_data, outcome_fm, ...)
pscart_ate(this_data, ps_fm, ...)
strat_regr_ate(this_data, outcome_fm, outcome_fam = gaussian, ...)
match_ps_ate(this_data, ...)
match_prog_ate(this_data, ...)
match_both_ate(this_data, ...)
caliper_ps_ate(this_data, ...)
caliper_prog_ate(this_data, ...)
caliper_both_ate(this_data, ...)
caliper_nn_ate(this_data, ...)
caliper_logit_ate(this_data, ...)
regr_ate(this_data, outcome_fm, outcome_fam = gaussian, ...)
dr_ate(this_data, outcome_fm, outcome_fam = gaussian, ...)
bal_ate(this_data, cov_ids, ...)
highdim_bal_ate(this_data, cov_ids, ...)
cem_ate(this_data, cov_ids, ...)
grf_ate(this_data, cov_ids, ...)
|
this_data |
a data frame with value |
... |
additional arguments to be passed indicating, for example, the outcome formula, propensity score formula, or other things on a case by case basis. |
a 1 x 1 data frame containing the named ATE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ate_list <- list(
ipw1 = ipw1_ate,
ipw2 = ipw2_ate,
ipw3 = ipw3_ate,
strat = strat_ate,
strat_regr = strat_regr_ate,
match_ps = match_ps_ate,
match_prog = match_prog_ate,
match_both = match_both_ate,
cal_ps = caliper_ps_ate,
cal_both = caliper_both_ate,
regr = regr_ate,
dr = dr_ate,
bal = bal_ate,
hdbal = highdim_bal_ate
)
gen_mod <- generate_data(n = 100,
dgp = 'ks',
correct_outcome = FALSE,
correct_ps = TRUE)
this_data <- gen_mod$data
this_data <- estimate_scores(this_data, outcome_fm = outcome_fm,
ps_fm = ps_fm,
ps_fam = ps_fam,
outcome_fam = outcome_fam)
thetahat <- with(gen_mod,
estimate_ates(this_data,
ate_list,
cov_ids = cov_ids,
outcome_fm = stringr::str_c('d + ', outcome_fm),
outcome_fam = outcome_fam))
thetahat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.