[Rd] meaning of "trim" in mean()

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Thu, 25 Oct 2007 09:04:53 -0400

(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?


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}}

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 25 Oct 2007 - 13:10:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 30 Oct 2007 - 03:46:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.