From andy_liaw at merck.com  Thu Oct 25 15:04:53 2007
From: andy_liaw at merck.com (Liaw, Andy)
Date: Thu, 25 Oct 2007 09:04:53 -0400
Subject: [Rd] meaning of "trim" in mean()
Message-ID: <39B6DDB9048D0F4DAD42CB26AAFF0AFA04D88433@usctmx1106.merck.com>

(I see this in both R-patched r43124 and R-devel r43233.)
In the Argument section of ?mean:

trim     the fraction (0 to 0.5) of observations to be trimmed from each
end of x before the mean is computed. Values outside that range are
taken as the nearest endpoint.  

Then in the Value section:

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.

The description in "trim" to me sounds like Windsorizing, rather than
trimming.  Should that be edited?

Best,
Andy


Andy Liaw, PhD
Biometrics Research    PO Box 2000 RY33-300
Merck Research Labs        Rahway, NJ 07065
andy_liaw(a)merck.com          732-594-0820



------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachme...{{dropped:15}}



[Rd] meaning of "trim" in mean()
Liaw, Andy