'Return the in-sample values of endog calculated by the model.
Returns
fitted : array (nobs x neqs)
The predicted in-sample values of the models\' endogenous variables.'

@cache_readonly
def fittedvalues(self):

    beta = self.beta
    if (self.det_coef_coint.size > 0):
        beta = vstack((beta, self.det_coef_coint))
    pi = np.dot(self.alpha, beta.T)
    gamma = self.gamma
    if (self.det_coef.size > 0):
        gamma = hstack((gamma, self.det_coef))
    delta_y = (np.dot(pi, self._y_lag1) + np.dot(gamma, self._delta_x))
    return (delta_y + self._y_lag1[:self.neqs]).T
