Skip to content
Prev 387428 / 398502 Next

Failure in predicting parameters

Hello,
the negative data comes from the machine. Probably I should use raw
data directly, although in the paper this requirement is not reported.
The p$x was a typo. Now I corrected it and I got this error:
```
+             fn = rutledge_param, x = 1:45, y = high)
Error in dimnames(x) <- dn :
  length of 'dimnames' [2] not equal to array extent
```
Probably because 'slopes' is a vector instead of a scalar. Since the
slope is changing, I don't think is right to use a scalar, but I tried
and I got:
```
+             fn = rutledge_param, x = 1:45, y = high)
Nonlinear regression via the Levenberg-Marquardt algorithm
parameter estimates: 6010.94, 1, 12021.88, 4700.49288888889
residual sum-of-squares: 1.14e+09
reason terminated: Relative error in the sum of squares is at most `ftol'.
```
The values reported are the same I used at the beginning apart from
the last (the background parameter) which is 4700 instead of zero. If
I plug it, I get an L shaped plot that is worse than that at the
beginning:
```
after = init = rutledge(halfFluo, 1, MaxFluo, 4700.49288888889, high)
points(1:45, after, type="l", col="blue")
```
What did I get wrong here?
Thanks
On Sun, Mar 14, 2021 at 8:05 PM Bill Dunlap <williamwdunlap at gmail.com> wrote: