I am trying to use Vector Autoregression (VAR) model. I have even defined tsset.. but there is an error that keeps coming up 'repeated time values in sample'.. I have tried everything to resolve this but there seems to be no solution..
Code:
. var happinessindex, lags(1/2) exog(gvaperheadbalanced) repeated time values in sample r(451); . var happinessindex gvaperheadbalanced, lags(1/2) repeated time values in sample r(451); . tsset nLAname year panel variable: nLAname (strongly balanced) time variable: year, 2011 to 2016 delta: 1 unit . var happinessindex gvaperheadbalanced repeated time values in sample r(451);
Comment