Imposing Restrictions

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

Yuyi
Posts: 3
Joined: Fri Oct 30, 2009 6:36 pm

Imposing Restrictions

Postby Yuyi » Fri Oct 30, 2009 6:53 pm

Deal all,
Can anyone please help me how to impose a restriction in a linear model? I have the following model in that sum of the coefficients add up to one:

Code: Select all

y=c(1)*x + (1-c(1))*z.
I need to impose another restriction so that both coefficients have to be non-negative.

Any comments would be greatly appreciated.
Yuyi

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

Re: Imposing Restrictions

Postby trubador » Sat Oct 31, 2009 4:54 am

Putting limits on estimated coefficient values.

Please search the forum for further examples and discussions on this subject...

Yuyi
Posts: 3
Joined: Fri Oct 30, 2009 6:36 pm

Re: Imposing Restrictions

Postby Yuyi » Sat Oct 31, 2009 5:47 am

Many thanks for directing to me towards detailed discussion on imposing restrictions. I found the relevant specification for me is the following.

Code: Select all

ai = exp( bi ) / ( exp( b1 ) + exp( b2 ) + ... + exp( bk ) )
, where

Code: Select all

ai > 0 a1+a2+...+ak=1
Could you please help me to apply this rule in the following model, because the way it explains confuses me.

Code: Select all

y=c(1)*x+(1-c(1))*z
I'd greatly appreciate your comments! please !
Yuyi

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

Re: Imposing Restrictions

Postby trubador » Sat Oct 31, 2009 6:46 am

That is the general formula to restrict the coefficients to be nonnegative and to sum up to one. Since you have only two coefficents, the following would suffice:

Code: Select all

y =@exp(c(1))*x + (1-@exp(c(1)))*z
Estimation output will display the value of c(1), and the coefficient you actually seek can be calculated via @exp(c(1)).

Yuyi
Posts: 3
Joined: Fri Oct 30, 2009 6:36 pm

Re: Imposing Restrictions

Postby Yuyi » Sat Oct 31, 2009 7:19 am

Many thanks. I appreciate it. Cheers.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests