computeWeights {debiasedTrialEmulation} | R Documentation |
Compute Propensity Score Weights
Description
Computes inverse probability treatment weights (IPTW) for ATE or ATT estimation.
Usage
computeWeights(population, estimator = "ate")
Arguments
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). |
Value
A vector of computed weights.
[Package debiasedTrialEmulation version 0.1.0 Index]