Problem with using egcitest for cointegration

23 views (last 30 days)
I am trying to test cointegration for variables that are clearly cointegreted and egcitest does not reject hypothesis. I attached graph which showes cointegration. I can not figure out what I am doing wrong?
>> [h,pValue] = egcitest([novipodaci1(:,end),novipodaci1(:,1)])
h =
0
pValue =
0.3554
>> plot(x,[novipodaci1(:,end),novipodaci1(:,1)])

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!