sgmean - Trimmed Mean Compatible with 'Statgraphics' Method
Computes the trimmed mean using a proportional discount
method on the extremes, replicating the behavior of
'Statgraphics' software. Unlike R's built-in mean() with trim,
this method applies a weighted reduction to boundary values
rather than removing them entirely.