Description Usage Arguments Details Value References Examples
Estimate average treatment effect (ATE) with inverse propensity score weighting using OLS.
1 | prop_weighted_ols_ate(data, y, w, p, cf = TRUE)
|
data |
a dataframe object containing the variables and values. |
y |
a character vector specifying the response variable. |
w |
a character vector specifying the treatment status. |
p |
a vector containing propensity score values. |
cf |
logical; if TRUE then includes confidence interval on ATE. |
Computes an estimate of the ATE τ via weighted OLS regression using propensity score weighting The weights are given by:
w_i = \frac{W_i}{e(X_i)} - \frac{1 - W_i}{1 - e(X_i)}
where e(X_i) = P(W_i = 1 | X_i = x) is the propensity score.
a list of ATE, 95 percent confidence interval upperbound and lowerbound or just ATE, depending on user input of cf
Aronow, Peter M.; Samii, Cyrus. “Estimating average causal effects under general interference, with application to a social network experiment." Annals of Applied Statistics 11 (2017), no. 4, 1912–1947 https://arxiv.org/pdf/1305.6156.pdf
1 2 3 4 5 | data("lalonde")
# calculate propensity scores
p <- propensity_score(lalonde, y = "re78", w = "treat", model = "logistic")
ate <- prop_weighted_ols_ate(data = lalonde, y = "re78", w = "treat", p = p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.