trimByPsQuantile {debiasedTrialEmulation}R Documentation

Trim Propensity Scores

Description

Trims propensity scores by removing extreme values at both ends of the distribution.

Usage

trimByPsQuantile(propensityScore, trimFraction = 0.05)

Arguments

propensityScore

A numeric vector of propensity scores.

trimFraction

Fraction of extreme values to trim (default 0.05).

Value

A vector of indices indicating which scores to keep.


[Package debiasedTrialEmulation version 0.1.0 Index]