Closed ggrothendieck closed 1 year ago
Thanks for the report! I'll fix that shortly
Thanks again for the feedback. I think this is fixed now.
There is one other problem. This is a problem in nlsList itself but maybe you want to fix it. Ben Bolker discovered that port ignores the names in lower and upper and just assumes they are in the same order as start. Perhaps you could add an error message if they both have names but the names are not in the same order. Alternately reorder them and issue a warning.
Thanks again! It looks like minpack.lm::nlsLM also ignores the names, at least for upper and lower. I think the problem would be with nls, because nlsList does not have an 'algorithm', 'lower' or 'upper' arguments.
See https://bugs.r-project.org/show_bug.cgi?id=18415 Maybe the R core people will fix it?
Thanks! I attempted a response to the SO question using nlsLMList. As long as the parameters are in the right order, it works. Names are effectively ignored (in the previous version). In my package I chose to throw an error if the named arguments are not in the correct order.
Although
nlsLMList
supportsalgorithm="port"
it does not supportlower=
andupper=
arguments so you still can't use bounds.