Skip to content
Prev 77421 / 398502 Next

trimmed mean in R seems to round the trimming fraction

VINOD at FORDHAM.EDU wrote:
Hi,

The "trim" argument works as documented. Did you read ?mean:

      If 'trim' is non-zero, a symmetrically trimmed mean is computed
      with a fraction of 'trim' observations deleted from each end
      before the mean is computed.

Also, I don't recall ever learning your method for trimmed mean, but R 
is a programming language and you can always write your own trimmed mean 
function.

HTH,

--sundar