Re: [Rd] Potential bug in fitted.nls

2023-01-26 Thread J C Nash
nls() actually uses different modeling formulas depending on the 'algorithm', and there is, in my view as a long time nonlinear modeling person, an unfortunate structural issue that likely cannot be resolved simply. This is because for nonlinear modeling programs we really should be using explic

Re: [Rd] Potential bug in fitted.nls

2023-01-26 Thread Bill Dunlap
Doesn't nls() expect that the lengths of vectors on both sides of the formula match (if both are supplied)? Perhaps it should check for that. -Bill On Thu, Jan 26, 2023 at 12:17 AM Dave Armstrong wrote: > Dear Colleagues, > > I recently answered [this question]() on StackOverflow that identifi

Re: [Rd] Potential bug in fitted.nls

2023-01-26 Thread J C Nash
FWIW, nlsr::nlxb() gives same answers. JN On 2023-01-25 09:59, Dave Armstrong wrote: Dear Colleagues, I recently answered [this question]() on StackOverflow that identified what seems to be unusual behaviour with `stats:::nls.fitted()`. In particular, a null model returns a single fitted value