Question: what is negbin in r?
Answer: The gam modelling function is designed to be able to use the negbin family (a modification of MASS library negative. binomial family by Venables and Ripley), or the nb function designed for integrated estimation of parameter theta . θ is the parameter such that var(y)=μ+μ2/θ, where μ=E(y).