/* PROC JOHANSEN ** ** Pedro J. F. de Lima, May 1993 ** Department of Economics, The Johns Hopkins University ** This code is written and submitted for public, non-commercial use. ** There are no performance guarantees. ** Please acknowledge this code (and its author) ** if you find it useful in your own work. ** ** FORMAT ** {tr, l_max, z} = johansen(levels,nlags); ** ** INPUT ** ** levels - levels of N series to test for cointegration ** nlags - number of lags in the VAR specification ** ** OUTPUT ** ** tr - Trace Statistic, for the hypothesis that there are at ** most q=0, 1, 2, ...,n-1 cointegrating vectors against ** the completly unrestricted VAR(p) model. ** That is Ho: r<=q H1: 0<=q