[R] How to use density function to find h_{k}

2007-06-03 Thread Patrick Wang
Hi, All: How can I use the density function to find the minimum of the bandwidth make the density function one mode, 2 mode, 3 mode etc. usually the larger the bandwidth, the fewer mode of the density. less bumpy. It will be impossible to try all possible bandwidths to then plot the pdf to

Re: [R] How to use density function to find h_{k}

2007-06-03 Thread Roger Koenker
You might try: http://www.stanford.edu/~kasparr/software/silverman.r But take a look at the referenced paper by Silverman first. You could also try the CRAN package ftnonpar by Kovac and Davies. url:www.econ.uiuc.edu/~roger/my.htmlRoger Koenker email [EMAIL PROTECTED]

[R] How to use density function to find h_{k}

2007-06-02 Thread Patrick Wang
Hi, All: How can I use the density function to find the minimum of the bandwidth make the density function one mode, 2 mode, 3 mode etc. It will be impossible to try all possible bandwidths to then plot the pdf to see how many modes it has. Is there an automatic way to do this Like for loop