Skip to content
Prev 13804 / 15274 Next

Time-Varying Cointegration in R

Paul,

thanks a lot for your reply. I think I can confirm that for basic 3x3 
matrices both yield the same results, only gauss does not normalize them 
to unit length, but if you do that, the eigenvectors are the same. This 
can be seen, when comparing the results of R with the results in the 
gauss manual [1] (p. 464-465).
I can also confirm, that the matrix A, for which the eigenvectors need 
to be computed are exactly the same between R and gauss. The matrix is 
calculated based on the example data set, which is also part of the 
gauss code and available in R as well.
I confirmed, that for all non-complex eigenvalues the eigenvectors are 
the same, when normalizing the vectors in gauss, at least for the two 
and three dimensional chebyshev polynomials. So that leaves me with the 
problem, that the results of eigen() are stored in a matrix which 
converts everything into complex numbers.

Perhaps someone could help me out to make sure the calculations are done 
correctly.

Thanks a lot in advance,
johannes

[1] http://www.aptech.com/wp-content/uploads/2014/01/GAUSS14_LR.pdf
[2] https://gist.github.com/hannes101/eeda2411b480cbeaee16
On 22.03.2016 19:55, Paul Gilbert wrote: