RE: [R] Maxima/minima of loess line?

2004-08-24 Thread Liaw, Andy
Just take range() of the fitted loess values. Andy From: Fredrik Karlsson Dear list, I've produced a loess line that I would like to investigate in terms of local/global maxima and minima. How would you do this? Thank you in advance. /Fredrik Karlsson

RE: [R] Maxima/minima of loess line?

2004-08-24 Thread Jari Oksanen
On Tue, 2004-08-24 at 15:23, Liaw, Andy wrote: Just take range() of the fitted loess values. Or if you really want to investigate the *line* instead of some random *points*, you may need something like: optimize(function(x, mod) predict(mod, data.frame(speed=x)), c(0,20), maximum=TRUE,