Dear all,
I am trying to save the coefficient matrix after an VAR estimation but I could not. Can anyone tell me how to save this.
This is my code which is working but I do not know where to find the coefficient matrix:
for !i = 1 to 1000
var mvar{!i}.ls(noconst) 1 1 a{!i} b{!i} c{!i}
@coefmat
next
Any help would be much appreciated.
Thanks,
Jing
Save coefficient in VAR estimation
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Save coefficient in VAR estimation
Code: Select all
matrix mycoefs = mvar.@coefmat
-
luckygift2002
- Posts: 7
- Joined: Mon Feb 22, 2010 2:21 pm
Re: Save coefficient in VAR estimation
Thank you Gareth,
The code works well.
However, the mycoefs only shows the coefficients in the final VAR estimation since it overwrites the previous estimates.
I am wondering how to save these 9 coefficient individually as a vector.
I am new to programming, your help is very appreciated.
Thanks again,
Jing
The code works well.
However, the mycoefs only shows the coefficients in the final VAR estimation since it overwrites the previous estimates.
I am wondering how to save these 9 coefficient individually as a vector.
I am new to programming, your help is very appreciated.
Thanks again,
Jing
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Save coefficient in VAR estimation
Code: Select all
vector myvec = @vec(mvar.@coefmat)
Who is online
Users browsing this forum: No registered users and 1 guest
