[R] Silverman modality test

2003-07-17 Thread Jerome Sackur
). Values for the critical window width seem OK, which is not the case for the significance levels. If someone could give me a hint about what is wrong... Or perhaps someone has already done a real implementation of this test? Thanks, Jerome Sackur Inserm U562 Orsay, France nbmodes - function (x

[R] unimodality test

2003-07-11 Thread Jerome Sackur
Dear R users, I am interested in uni- bi- multimodality tests, for analysing reaction times data. I was lead to Hartigan's dip test (Ann. Statistics, 13, 1985, pp. 70-84, Applied Statistics, 34, 1985, 320-325). Not being a programmer I am unable to translate the Fortran code given in ref. 2 into