Re: [R] Optimization problem

From: José E. Lozano <lozalojo_at_jcyl.es>
Date: Fri, 18 Jun 2010 08:48:14 +0200


> How about smoothing the percentages, and then take the second derrivative
to find the inflection point?
>
> which.max(diff(diff((lowess(percentages)$y))))

This solution is what I've been using so far. The only difference is that I am smoothing the 1st derivative, since its the one I want to be smooth, smoothing the percentages curve does not produce good results.

Thanks!
Jose Lozano



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. Received on Fri 18 Jun 2010 - 06:51:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 18 Jun 2010 - 08:10:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive