Replace probabilities below threshold with threshold value
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 <email@example.com>, Dean Eckles <firstname.lastname@example.org>, Kyle Peyton <email@example.com>
1 2 3 4 5
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.