sgmean: Proportional Trimmed Mean
Computes a proportional trimmed mean that resolves the
integer truncation problem of base R's mean(..., trim). When
k = trim * n is non-integer, a fractional discount (1 - delta) is
applied to boundary observations, where delta = k - floor(k).
The resulting estimator is continuous in alpha for any fixed n,
syntactically identical to mean(..., trim), and compatible with
the 'Statgraphics' implementation. The package also provides
standard errors, confidence intervals and Yuen-type one-sample,
paired and two-sample t tests for trimmed means (following
Yuen (1974) <doi:10.1093/biomet/61.1.165>), a robust effect
size, a truncation diagnostic, and descriptive statistics
(winsorized mean and sigma, quantiles following Hyndman and Fan
(1996) <doi:10.1080/00031305.1996.10473566>, biweight scale,
skewness, kurtosis). See Gaviria Chaverra (2026)
<doi:10.32614/CRAN.package.sgmean>.
Documentation:
Downloads:
Linking:
Please use the canonical form
https://CRAN.R-project.org/package=sgmean
to link to this page.