restricting the sum of coefficients
Moderators: EViews Gareth, EViews Moderator
restricting the sum of coefficients
how do i restrict the sum of coeffients to sum to 1? i am doing a GMM model on the new keynesian phillips curve and i want to restrict the sum of two coefficients. my model specification is: gdpd=c(1)+c(2)*gdpd(1)+c(3)*gdpd(-1)+realmc. i want c(2)+c(3)=1. i have read two related topics in this forum on this topic and i tried to follow the suggestions there (e.g. (1-c(1) or 1-exp(c(1)). instead of c(3), i use (1-c(2))*gdpd(-1). however, when i run my regression, the results do not report the coefficient and related info for gdpd(-1). i'd like to know what am i doing wrong?
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: restricting the sum of coefficients
If you know c(2), 1-c(2) isn't that hard to figure out manually. :)
Re: restricting the sum of coefficients
yes that is true but i want to know the associated s.e., t-stat, p-value as well.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3797
- Joined: Wed Sep 17, 2008 2:25 pm
Re: restricting the sum of coefficients
The standard error of 1-c(2) is the same as the standard error of c(2).
Re: restricting the sum of coefficients
oh ok, thanks a lot for the help. :D
i have another questions. i am also using a 2sls model and i want to do the newey west HAC. eviews has this but it doesn't have an option to set the number of lags. what if i want to do so? how do i do it? thanks again.
i have another questions. i am also using a 2sls model and i want to do the newey west HAC. eviews has this but it doesn't have an option to set the number of lags. what if i want to do so? how do i do it? thanks again.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: restricting the sum of coefficients
EViews 7 lets you specify the number of lags for TSLS in single equations.
Re: restricting the sum of coefficients
i see but i am using eviews 6. is there a way to do it in eviews 6?
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: restricting the sum of coefficients
Estimate your single equation in a system.
Re: restricting the sum of coefficients
k, will do. thanks!
Re: restricting the sum of coefficients
i tried estimating my equation in a system as suggested:
(b=12) gdpd=c(1)+c(2)*gdpd(1)+c(3)*gdpd(-1)+lrealmc
@instr gdpd(-1 to-4) ygap(-1 to-2) nw inf lrmc
with b=12, number lags of newey west. it doesn't seem to work. is my specification wrong? :-(
(b=12) gdpd=c(1)+c(2)*gdpd(1)+c(3)*gdpd(-1)+lrealmc
@instr gdpd(-1 to-4) ygap(-1 to-2) nw inf lrmc
with b=12, number lags of newey west. it doesn't seem to work. is my specification wrong? :-(
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: restricting the sum of coefficients
Yes, it's wrong. You'll have to estimate using GMM with the TSLS weighting matrix. See the discussion of System GMM.
Re: restricting the sum of coefficients
Hi..same question..how do I restrict the sum of 2 coefficients to equal 1 in the equation.
inflm=c(1)+c(2)*ipgap+c(3)*infl_e+c(4)*inflm_l
Would like inflm_l+infl_e =1
inflm=c(1)+c(2)*ipgap+c(3)*infl_e+c(4)*inflm_l
Would like inflm_l+infl_e =1
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
restricting the sum of coefficients
inflm=c(1)+c(2)*ipgap+c(3)*infl_e+(1-c(3))*inflm_l
Who is online
Users browsing this forum: No registered users and 2 guests
