I want to find the value which makes the following function predict the observations contained in the following dataset.
require(mosaic)
d=data.frame(t=c(41.5,44,42.77,47), y=c(230,76.4/60,3.4,1))
fitModel(y~(-(47-t)*I/(35-t)*(1+exp((42.77-t)*I))),
data=d,start=list(I=3.1,t=47))
It seems I am replicating exactly what the example in the function's help says, but yet it reports a rather obscure error message.
Error in qr(.swts * gr) : dims [product 2] does not match the length of object [4]
Any suggestions?