View source: R/common-support.R
has_common_support | R Documentation |
The common support identification methods are based on Hill and Su (2013). Loosely speaker, an individuals treatment effect estimate has common support if the counter factual estimate is not too uncertain. The estimates are uncertain when the prediction is 'far away' from other observations. Removing estimates without common support can be beneficial for treat effect estimates.
has_common_support(model, treatment, method, cutoff, modeldata = NULL)
model |
A supported Bayesian model fit that can provide fits and predictions. |
treatment |
A character string specifying the name of the treatment variable. |
method |
Method to use in determining common support. 'chisq', or 'sd'. |
cutoff |
Cutoff point to use for method. |
modeldata |
Manually provide model data for some models (e.g. from BART package) |
Hill, Jennifer; Su, Yu-Sung. Ann. Appl. Stat. 7 (2013), no. 3, 1386–1420. doi:10.1214/13-AOAS630. https://projecteuclid.org/euclid.aoas/1380804800
Tibble with a row for each observation and a column indicating whether common support exists.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.