'Returns the residuals for the model.
The residuals reflect the mean structure specified by the
fixed effects and the predicted random effects.'

@cache_readonly
def resid(self):

    return (self.model.endog - self.fittedvalues)
