Eigen Values

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.
rizu81
Posts: 1
Joined: Wed Sep 23, 2015 6:41 pm

Eigen Values

Unread post by rizu81 »

Hello Moderator,

I am new to RATS. and I am struggling with one very basic thing. I could get and see the Eigen values of a matrix (say, x) by writing the following code
eigen x y
dis y
where y is a matrix of (350*3) dimension.
But i don't know how to store this element of y. for example: i want to store the first column of y as A, second column as B, and third column as C. Each of them will be (350*1) in dimension.

Thanks in advance.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Eigen Values

Unread post by TomDoan »

The eigen vectors are the third parameter, not the second. (eigenvalues are the second). Use %XCOL.

compute a=%xcol(y,1)
compute b=%xcol(y,2)
compute c=%xcol(y,3)
Post Reply