Constrained least square and optimization

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

Roman
Posts: 10
Joined: Thu Oct 08, 2015 2:14 pm

Constrained least square and optimization

Postby Roman » Tue Oct 27, 2015 2:38 pm

Hello,

I have EViews 9. I would have 2 questions about constrained least square estimation:
1. Let's say I want to estimate the equation Y=Beta_0 + Beta_1*X+res
I would like to know if there is a way to impose the estimation of Betas under the constraint of non negative Y (ie: Y>0) in the fitting process (without taking Log of Y). Even looking at the optimize function, I didn't find a way to do it.

2. Assuming that I estimated an equation Y_hat=Beta_0_hat+Beta_1_hat*X
I would like to reparametrize the equation using the following constrained optimization: (see image attached) where Y_hat denotes the dependent variable estimated above and Y_tilde is the closest possible approximation subject to the constraint of positive Y_tilde.
In a nutshell, I want to minimize an objective function subject to an additional constraint.
How can I do this in EViews ?


Many thanks for your answers,

Regards,

Roman
Attachments
Image.png
Image.png (4 KiB) Viewed 8696 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13583
Joined: Tue Sep 16, 2008 5:38 pm

Re: Constrained least square and optimization

Postby EViews Gareth » Tue Oct 27, 2015 3:17 pm

EViews does not have constrained estimation or optimization built in. The only way to do it is to perform a transformation such as taking logs.

saranya
Posts: 41
Joined: Wed Nov 16, 2016 5:51 am

Re: Constrained least square and optimization

Postby saranya » Tue Nov 26, 2019 10:27 pm

is this the case with EViews 11 as well?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13583
Joined: Tue Sep 16, 2008 5:38 pm

Re: Constrained least square and optimization

Postby EViews Gareth » Tue Nov 26, 2019 10:41 pm

Yep


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests