Description Usage Arguments Details Value Examples
Compute the inverse probability of treatment weights (IPTW) using the propensity scores, and remove subjects having a weight higher than the user-specified threshold.
1 | trimByIptw(population, maxWeight = 10, estimator = "ate")
|
population |
A data frame with at least the three columns described below. |
maxWeight |
The maximum allowed IPTW. |
estimator |
The type of estimator. Options are |
The data frame should have the following three columns:
rowId (numeric): A unique identifier for each row (e.g. the person ID).
treatment (integer): Column indicating whether the person is in the target (1) or comparator (0) group.
propensityScore (numeric): Propensity score.
Returns a tibble with the same columns as the input, as well as a weights
column containing the
IPTW.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.