DoseResponse / drc

Fitting dose-response models in R
https://doseresponse.github.io/drc/
21 stars 16 forks source link

llogistic2 model has no fixed information #24

Open hjia222 opened 2 years ago

hjia222 commented 2 years ago

I found that llogistic2 model has no fixed information

x = LL2.4(fixed = c(NA, 0, 1, NA))
x$fixed
NULL

fit <- drm(vol ~ conc, data = algae, fct = LL2.4(fixed = c(NA, 0, 200, NA)))
fit$fct$fixed
NULL

In the llogitic2 function, return list does not include "fixed" like in llogistic:

returnList <- list(fct = fct, ssfct = ssfct, names = names, deriv1 = deriv1, deriv2 = deriv2, derivx = derivx, edfct = edfct, bfct = bfct, inversion = invfct, name = fctName, text = fctText, noParm = sum(is.na(fixed)), lowerAs = lowerAs, upperAs = upperAs, monoton = monoton)

Is this missing intentional? If not, could you please add fixed to returnList?

Thanks!