Store coefficients of several AR equations
Posted: Wed May 28, 2014 2:25 am
Dear all,
I apologize in advance for my basic english AND my poor knowledge of eviews.
I have 388 series, and for each serie i run 6 equations ( AR(1), AR(2), AR(3), AR(4), AR(5), AR(6) ).
I'm looking for a code to store the coefficients (constant and AR coefficients) of each equation i've run. I've tried by using the "colplace" command but i experienced matrix size mismatch problems.
Thanks in advance for your help!
I apologize in advance for my basic english AND my poor knowledge of eviews.
I have 388 series, and for each serie i run 6 equations ( AR(1), AR(2), AR(3), AR(4), AR(5), AR(6) ).
Code: Select all
group g * 'put every series in the workfile into a group
g.drop resid
for !i=1 to g.@count 'loop through every series in the first group
%name = g.@seriesname(!i) 'grab the current series name
for !p = 1 to 6
if !p = 1 then
%ar = "ar(1)"
else
%ar = %ar + "ar(" + @str(!p) + ")"
endif
equation eq{!i}_ar{!p}.ls {%name} c {%ar} Thanks in advance for your help!