'(array) The model residuals. An (nobs x k_endog) array.'

@cache_readonly
def resid(self):

    resid = self.filter_results.forecasts_error
    if (resid.shape[0] == 1):
        resid = resid[0, :]
    else:
        resid = resid.T
    return resid
