@cache_readonly
    def resid_generalized(self):
        # Generalized residuals
        return self.model.endog - self.predict()
Generalized residuals
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/discrete_model.py/LogitResults.resid_generalized