Has a test for bimodality been implemented in R? Thanks, John NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.
On 31/08/2009, at 9:40 AM, John Sansom wrote:> Has a test for bimodality been implemented in R?Doing RSiteSearch("test for bimodality") yields one hit, which points to http://finzi.psych.upenn.edu/Rhelp08/2008-September/173308.html It looks like it might be *some* help to you. cheers, Rolf Turner ###################################################################### Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
Hi John,>> Has a test for bimodality been implemented in R?You may find the code at the URL below useful. It was written by Jeremy Tantrum (a PhD of Werner Stuetzle's). Amongst other things there is a function to plot the unimodal and bimodal Gaussian smoothers closest to the observed data. A dip-test statistic is also calculated. Regards, Mark. http://www.stat.washington.edu/wxs/Stat593-s03/Code/jeremy-unimodality.R John Sansom wrote:> > Has a test for bimodality been implemented in R? > > Thanks, John > > NIWA is the trading name of the National Institute of Water & Atmospheric > Research Ltd. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- View this message in context: http://www.nabble.com/test-for-bimodality-In-Reply-To%3D-tp25216164p25220627.html Sent from the R help mailing list archive at Nabble.com.
Rolf Turner wrote:> > On 31/08/2009, at 9:40 AM, John Sansom wrote: > >> Has a test for bimodality been implemented in R? > > Doing RSiteSearch("test for bimodality") yields one hit, > which points to > > http://finzi.psych.upenn.edu/Rhelp08/2008-September/173308.html > > It looks like it might be *some* help to you. > > cheers, > > Rolf Turner >I have used the dip test for testing if a distribution is *unimodal*. Possibly that is what John needs. See package diptest. David Scott -- _________________________________________________________________ David Scott Department of Statistics The University of Auckland, PB 92019 Auckland 1142, NEW ZEALAND Phone: +64 9 923 5055, or +64 9 373 7599 ext 85055 Email: d.scott at auckland.ac.nz, Fax: +64 9 373 7018 Director of Consulting, Department of Statistics