[R] grid search with failed evaluations (and nonlinear start values as a secondary consideration)

Thomas Lumley tlumley at u.washington.edu
Thu May 16 17:30:10 CEST 2002


On Thu, 16 May 2002, Brian Scholl wrote:
>
> One very simple way to think about this is to try a bunch of different
> start values and pick the one that minimized the regression's RSS.  I
> could make a grid to search on, then simply pick the minimizer.  The
> problem though is that when a bad start value is used (i.e. the error
> above), the program stops entirely, so we don't do more than a few
> trials in the grid search.  My main question is how can I get around
> this to complete the search?
>

You can use try() around the trials in the grid search to catch the
errors.

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list