@cache_readonly
    def resid_generalized(self):
        # generalized residuals
        model = self.model
        endog = model.endog
        XB = self.predict(linear=True)
        pdf = model.pdf(XB)
        cdf = model.cdf(XB)
        return endog * pdf/cdf - (1-endog)*pdf/(1-cdf)
Strip primitive types since PHP doesn't support primitive type hints.
dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/discrete_model.py/ProbitResults.resid_generalized--crossover with--dataset/ETHPy150Open google/apis-client-generator/src/googleapis/codegen/php_generator.py/PHPGenerator._SetTypeHint