Hello,
I'm trying to estimate the following equation with variables X, Y, and Z, and coefficient a, b, and c, and there is requirement that a>=0:
Z = c + (a/X) + (bY/X)
I'm using estimation function in the Eview but it gives me negative value for a, which is not acceptable logically for my problem.
Could you please let me know how we can make constraints to coefficients?
Regards,
Amir
Defining constraints for coefficients
Moderators: EViews Gareth, EViews Moderator

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 12111
 Joined: Tue Sep 16, 2008 5:38 pm
Re: Defining constraints for coefficients
Follow us on Twitter @IHSEViews

 Posts: 18
 Joined: Tue Sep 18, 2018 8:45 pm
Re: Defining constraints for coefficients
EViews Gareth wrote:http://forums.eviews.com/viewtopic.php?f=4&t=48&p=99
Thanks. I have already read the post, but cannot figure it out and also implement it the 'Quick Estimate' function.
Could you help me out here?

 Posts: 18
 Joined: Tue Sep 18, 2018 8:45 pm
Re: Defining constraints for coefficients
EViews Gareth wrote:http://forums.eviews.com/viewtopic.php?f=4&t=48&p=99
Hello Gareth,
I read the entire post, but I'm still confused how to make the constraint (a=>0) to my equation. I used both the Exp and Log solutions but either I get errors or negative values which does not make sense.
Could you give me some tips?

 Fe ddaethom, fe welon, fe amcangyfrifon
 Posts: 12111
 Joined: Tue Sep 16, 2008 5:38 pm
Re: Defining constraints for coefficients
That post pretty much gives all the details.
Follow us on Twitter @IHSEViews

 Posts: 18
 Joined: Tue Sep 18, 2018 8:45 pm
Re: Defining constraints for coefficients
EViews Gareth wrote:That post pretty much gives all the details.
Yes, but my background is not at all math and I'm a dummy in math. The post says for a constant no larger than 1 we better use 1exp(a). Since mine is a constant no smaller than zero, I dont know how to do the conversion using 1exp(a).

 Posts: 18
 Joined: Tue Sep 18, 2018 8:45 pm
Re: Defining constraints for coefficients
Need urgent help with my problem. Please!!!
I'm having the following equation and I need the constant (a) to be no smaller than zero:
Z = c + (a/X) + (bY/X)
I have already read the related post: viewtopic.php?f=4&t=48&p=99 , which says for onesided constraints like for the constant c no larger than 1 we should use [1Exp(c)] hack. Mine is no smaller than zero, but I cannot figure out if I should put Exp(c) or Exp(c) or sth else.
In case I use Exp(c), in the result table brings me the value of 0.25 as coefficient and Exp(0.64) next to the corresponding variable. But it does not make sense to me since how the answer of an Exp can be negative? I also used Exp(c), but again it gave me nonsense results. The coefficient value of 0.62 for Exp(0.254). I even dont know if I should ignore whatever value the tables shows inside Exp or it should be considered when calculating the primary constant.
Even though my constraint is one sided, I also used the two sided hack of (HL)*@Logit(c(2)) + L because it was giving more generic rules for making constraints. I imagined my constraint to be 0=<a<=2 and I changed the upper value to see how the results would change accordingly. For 0=<a<=2, I got the coefficient value of 0.60 for 2@Logit(0.395) as the corresponding constant. Here again I even dont know if I should ignore whatever value the tables shows inside Logit or it should be considered when calculating the primary constant.
I also wonder if the method (Lease Squares) in estimation setting should be changed as the estimating constant is no longer linear because they are being put in nonlinear expressions.
I'm a dummy in math.
Could you please, please help!!!!!!!
I'm having the following equation and I need the constant (a) to be no smaller than zero:
Z = c + (a/X) + (bY/X)
I have already read the related post: viewtopic.php?f=4&t=48&p=99 , which says for onesided constraints like for the constant c no larger than 1 we should use [1Exp(c)] hack. Mine is no smaller than zero, but I cannot figure out if I should put Exp(c) or Exp(c) or sth else.
In case I use Exp(c), in the result table brings me the value of 0.25 as coefficient and Exp(0.64) next to the corresponding variable. But it does not make sense to me since how the answer of an Exp can be negative? I also used Exp(c), but again it gave me nonsense results. The coefficient value of 0.62 for Exp(0.254). I even dont know if I should ignore whatever value the tables shows inside Exp or it should be considered when calculating the primary constant.
Even though my constraint is one sided, I also used the two sided hack of (HL)*@Logit(c(2)) + L because it was giving more generic rules for making constraints. I imagined my constraint to be 0=<a<=2 and I changed the upper value to see how the results would change accordingly. For 0=<a<=2, I got the coefficient value of 0.60 for 2@Logit(0.395) as the corresponding constant. Here again I even dont know if I should ignore whatever value the tables shows inside Logit or it should be considered when calculating the primary constant.
I also wonder if the method (Lease Squares) in estimation setting should be changed as the estimating constant is no longer linear because they are being put in nonlinear expressions.
I'm a dummy in math.
Could you please, please help!!!!!!!
Who is online
Users browsing this forum: No registered users and 15 guests