Displaying 2 results from an estimated 2 matches for "sackur".
Did you mean:
hacker
2003 Jul 11
1
unimodality test
...5,
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 a R
function. I'd be glad to learn that someone already did it, or has devised
a better solution for this kind of problem..
Thanks a lot in advance,
J. Sackur
Inserm U562
Orsay, France
2003 Jul 17
0
Silverman modality test
...amp; Gaskins, J. Amer. Stat. Ass., 75, (1980), 42-56). 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, h)
# returns how many modes there are in the kernel density estimate of
# vector x, with window width h.
{
modes <- density (x, bw=h)
modes <- diff (diff (modes$y) / abs (diff (modes$y)))
modes <- rep(1, length(modes))...