method = "percentile" clips at the specified percentiles;
method = "winsorize" replaces outliers with the boundary values.
Usage
morie_weights_trim(
weights,
lower_percentile = 1,
upper_percentile = 99,
method = c("percentile", "winsorize")
)