View source: R/utility_functions.R
computeWeights | R Documentation |
Computes inverse probability treatment weights (IPTW) for ATE or ATT estimation.
computeWeights(population, estimator = "ate")
population |
A data frame containing treatment assignments and propensity scores. |
estimator |
Type of estimator, either "ate" (average treatment effect) or "att" (average treatment effect on the treated). |
A vector of computed weights.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.