Singular Value Decomposition

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

blonggovnl
Posts: 16
Joined: Thu Aug 22, 2013 7:45 am

Singular Value Decomposition

Postby blonggovnl » Mon Jun 08, 2015 9:16 am

Hi;

I'm trying to implement a Lee-Carter Model in EViews, but am having an issue with singular value decomposition. The issue is related to the dimensions of the matrices involved.

Code: Select all

vector s matrix v matrix u=@svd(y_m,s,v)

I know EViews automatically resizes s and v to the appropriate dimensions, and they look fine. My issue is with u. The matrix y_m is 91 x 42 and as such, u should be 91 x 91, but I am getting a u that has the same dimensions as y_m.

Thoughts?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Singular Value Decomposition

Postby EViews Gareth » Mon Jun 08, 2015 10:10 am

Yes, EViews only computes the first n columns of u (called the "economy SVD" in packages such as Matlab).

If you want the full matrix, you can always compute the eigenvectors directly.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests