Skip to content
Prev 387483 / 398502 Next

Failure in predicting parameters

It worked. I re-written the equation as:
```
rutledge_param <- function(p, x, y) ( (p$M / ( 1 + exp(-(x-p$m)/p$s))
) + p$B ) - y
```
and used Desmos to estimate the slope, so:
```
estim <- nls.lm(par = list(m = halfCycle, s = 2.77, M = MaxFluo, B = high[1]),
            fn = rutledge_param, x = 1:45, y = high)
summary(estim)
R <- rutledge(list(half_fluorescence = 27.1102, slope = 2.7680,
                   max_fluorescence = 11839.7745, back_fluorescence =
-138.8615) , 1:45)
points(1:45, R, type="l", col="red")
```

Thanks
On Tue, Mar 16, 2021 at 8:29 AM Luigi Marongiu <marongiu.luigi at gmail.com> wrote: