Getting the dispersion parameter from a negative binomial regression in python
R code to find the dispersion parameter of the negative binomial regression model.
mod.Syn.L.plusGamma <- glm.nb(Syn ~ offset(I(1*log(L))), data = Lang.data)
r = mod.Syn.L.plusGamma$theta
Least squares fitting with bounded response variable Y in Python
I have a problem of the form: