Open mfasiolo opened 7 years ago
mgcv using the method in Section 6.7 of Simon Wood's book (2nd ed) to initialize the sp. Several fixes in qgam and mgcv are needed:
w <- .5 * as.numeric(family$Dd(y,mustart,theta,weights)$Dmu2*family$mu.eta(family$linkfun(mustart))^2)
makes so the EXPECTED weights are used. These are on average much larger then the actual weights, because the model is mispecified. Hence the initial guess for the sp is too high.Points 1 and 2 hopefully addressed in these commits:
f87b53779d6eb538bfb63433bcb415cfe2622446 164e9276d8c86d3634418128b8ca3c75cfb70882
but point 3 needs to be addressed in mgcv.