Return the provided vector with values smaller than the provided threshold replaced with that threshold (i.e., clip the probabilities below a certain value). If the threshold is chosen to match an empirical quantile then this can be used to implement Winsorizing probabilities from below. If no threshold is provided, the smallest value greater than zero is used.
Vector of probabilities.
Threshold. Values smaller than
Used to avoid small probabilities blowing up in inverse probability weighting.
Produces warnings whenever values are actually replaced.
Vector the same length as
x with, possibly, some entries replaced.
Peter M. Aronow <firstname.lastname@example.org>, Dean Eckles <email@example.com>, Kyle Peyton <firstname.lastname@example.org>
1 2 3 4 5