Hi,
I am currently trying to write a programm that directly saves the covariance matrices for a number of equations. However, I do not manage to display a covariance matrix that displays the actual variable names (instead the variables are numbered such as r1,r2 etc). Is there any way that I can automatically store the covariance matrix with the actual variable names (the same way it is displayed when you manually go to view and then select the covariance matrics?)
the code I currently use:
for !i=1 to N
matrix x_{!i} = ecm_{!i}.@coefcov
freeze(tabx{!i}) x_{!i}
next
for !i= 1 to N
tabx_{!i}.save(t=csv) H:\CSV\Cov_{!i}.csv
next
I would very much appreciate your help. I am sure it is possible but I really can not figure it out and it would help me a whole lot.
thank you very much in advance.
Store Covariance Matrix with actual variable name
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13323
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Store Covariance Matrix with actual variable name
Code: Select all
for !i=1 to N
freeze(tabx{!i}) ecm_{!i}.coefcov
tabx_{!i}.save(t=csv) H:\CSV\Cov_{!i}.csv
next
Follow us on Twitter @IHSEViews
Re: Store Covariance Matrix with actual variable name
Great, thank you so much
Who is online
Users browsing this forum: No registered users and 41 guests