access intercept and trend coefficients after cointreg

For questions regarding programming in the EViews programming language.

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

funkymind
Posts: 4
Joined: Sat Feb 07, 2015 3:15 pm

access intercept and trend coefficients after cointreg

Postby funkymind » Tue Mar 24, 2015 3:18 pm

Hello,

I want to run a cointegration regression for a set of variables var1-var10 and save the coefficients of the regressors to a table:
for !x = 1 to 10
table(!x,5) dolscoeff equation hello{!x}.cointreg(METHOD=DOLS,TREND=linear,LLTYPE=AIC,PANMETHOD=GROUPED) var{!x} regressor @determ detvar
dolscoeff(1,2)="beta_coeff"
dolscoeff(!x+1,2)=hello!x.c(1)
next

However, I can not find intercept and trend coefficient as well as coefficients of additional deterministic regressors. Of course, the coefficient would be average values, not individual (country) values.

Best,

K.

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: access intercept and trend coefficients after cointreg

Postby trubador » Wed Mar 25, 2015 1:50 am

Use the "btwcoefs=" option in the cointreg:

Code: Select all

cointreg(METHOD=DOLS,btwcoefs=coefmat,TREND=linear,LLTYPE=AIC,PANMETHOD=GROUPED)
It will save the coefficents to "coefmat" matrix. You can also see the output from an equation editor: "View/Individual Coefficients"


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests