Skip to content

Summary for mode of a data set

2 messages · Ravi Varadhan, Spencer Graves

#
Dear Spencer:

In the following example, your code doesn't pick up the local mode at 5.
[1] 1 3

In this example, it gives a mode at 7, which is incorrect.
[1] 1 3 7

Ravi.

----- Original Message -----
From: Spencer Graves <spencer.graves at pdf.com>
Date: Monday, June 23, 2003 2:53 pm
Subject: Re: [R] Summary for mode of a data set
#
You are correct that my function is also wrong.

	  You need to decide what you want and write a function to do that, if 
you don't have it already.

Best Wishes,
Spencer Graves
Ravi Varadhan wrote: