hd_trim {aggutils} | R Documentation |
From Powell et al. (2022) doi:10.1037/dec0000191. You find the shortest interval containing (1-p) * 100% of the data and take the mean of the forecasts within that interval.
hd_trim(x, p = 0.1)
x |
Vector of forecasts in 0 to 100 range (%) |
p |
The proportion of forecasts to trim (between 0 and 1) |
(numeric) The highest-density trimmed mean of the vector
As p gets bigger this acts like a mode in a similar way to the symmetrically-trimmed mean acting like a median.