Principal Component Analysis (Eigenvector Extracting)

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

dean.hong
Posts: 12
Joined: Fri Jun 03, 2016 10:24 am

Principal Component Analysis (Eigenvector Extracting)

Postby dean.hong » Wed Jun 29, 2016 1:57 pm

Hello,

I used this code: factor dmf1.ipf(n=mineigen) a b c d e f g
to generate a factor. What I am really interested in are principal components, which I can only get (to my knowledge) by clicking View->Eigenvalues-> and click Eigenvectors in additional output section. I want to save first one or two principal components of Eigenvector (loadings) table into my workfile. I tried using factor.eigen(eigvec)function, but it only gave me eigenvalues, not vectors (that I want). Could you let me know how I can do that using code? Thanks in advance.
Attachments
Capture.PNG
Capture.PNG (37.89 KiB) Viewed 5229 times

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Principal Component Analysis (Eigenvector Extracting)

Postby EViews Glenn » Wed Jun 29, 2016 4:24 pm

Do you just want the eigenvectors and eigenvalues of a covariance matrix? If so, factor analysis may not be what you want.

dean.hong
Posts: 12
Joined: Fri Jun 03, 2016 10:24 am

Re: Principal Component Analysis (Eigenvector Extracting)

Postby dean.hong » Thu Jun 30, 2016 5:53 am

Would there be an alternative way to get the data? Or is there any way I can extract underlying factors from the output? Thanks.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Principal Component Analysis (Eigenvector Extracting)

Postby EViews Glenn » Thu Jun 30, 2016 11:14 am

Use makepcomp,

http://www.eviews.com/help/helpintro.ht ... pcomp.html

or interactively, using from a group using View/Make Principal Components...


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests