statsmodels.discrete.truncated_model.TruncatedNegativeBinomialResults.resid¶ TruncatedNegativeBinomialResults.resid¶ Residuals Notes The residuals for Count models are defined as y−p where p=exp(Xβ). Any exposure and offset variables are also handled.