Remove subjects having a weight higher than the user-specified threshold.
trimByIptw(population, maxWeight = 10)
A data frame with at least the two columns described in the details
The maximum allowed IPTW.
Returns a tibble with the same columns as the input.
The data frame should have the following two columns:
treatment (integer): Column indicating whether the person is in the target (1) or comparator (0) group.
iptw (numeric): Propensity score.