Programming/ Setting Value for Coefficients

For questions regarding programming in the EViews programming language.

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

canboardrp
Posts: 17
Joined: Tue Mar 06, 2012 9:11 am

Programming/ Setting Value for Coefficients

Postby canboardrp » Thu Jul 26, 2012 12:58 pm

I'm wondering if there's a way to set/force a coefficient to take on a specific value.

For example, is there way to set the following when I'm programming so that c(2) = -0.15 and that carries into the estimation and the output?

Code: Select all

LOG(TSEC ) = C(1) + C(2)*LOG(DIESEL)+C(3)*(POP) + C(4)*LOG(gdp)+ C(5)*DUMMYQ1 + C(6)*DUMMYQ2 +C(7)*DUMMYQ3

EViews Esther
EViews Developer
Posts: 149
Joined: Fri Sep 03, 2010 7:57 am

Re: Programming/ Setting Value for Coefficients

Postby EViews Esther » Thu Jul 26, 2012 1:05 pm

Can you be more specific? When you fix c(2)=-0.15, the term "c(1)-0.15*LOG(DIESEL)" will be the intercept in the equation.

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

Re: Programming/ Setting Value for Coefficients

Postby EViews Glenn » Thu Jul 26, 2012 2:39 pm

To followup. The only way is to remove C(2) from the estimation. EViews doesn't allow you to have coefficients that aren't estimated.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests