The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
sgmean computes the trimmed mean using a proportional
discount method on the extremes, replicating the behavior of
Statgraphics software.
Unlike R’s built-in mean(..., trim), which removes
boundary values entirely, sgmean applies a weighted
reduction — producing results consistent with Statgraphics.
You can install sgmean from GitHub with:
# install.packages("devtools")
devtools::install_github("jcarlosgaviria/sgmean")library(sgmean)
x <- c(2, 4, 6, 8, 100)
# sgmean method (Statgraphics compatible)
sgmean(x, trim = 0.05)
# Base R method (different result)
mean(x, trim = 0.05)Juan Carlos Gaviria Chaverra
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.