@cache_readonly
    def _resid_raw(self):
        beta_matrix = self._beta_matrix(lag=0)

        Y = self._y.values.squeeze()
        X = self._x.values
        resid = (X * beta_matrix).sum(1) - Y

        return resid
dataset/ETHPy150Open pydata/pandas/pandas/stats/plm.py/MovingPanelOLS._resid_raw/swapped operands of `-`