trimByPs uses the provided propensity scores to trim subjects with extreme scores.
trimByPs(population, trimFraction = 0.05)
A data frame with the three columns described below
This fraction will be removed from each treatment group. In the target group, persons with the highest propensity scores will be removed, in the comparator group person with the lowest scores will be removed.
Returns a date frame with the same three columns as the input.
The data frame should have the following three columns:
|(numeric)||A unique identifier for each row (e.g. the person ID)|
|(integer)||Column indicating whether the person is in the target (1) or comparator|