OLS with inequality constraints

For questions regarding programming in the EViews programming language.

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

CCB
Posts: 4
Joined: Mon Jul 01, 2013 11:53 pm

OLS with inequality constraints

Postby CCB » Tue Jul 02, 2013 12:01 am

Good morning,
given the versatility of OLS models with arbitrary inequality constraints, I was wondering whether it would be possible to implement OLS with inequality constraints, for example using the approach laid out here (http://www.jstor.org/discover/10.2307/2 ... 2140463023), in Eviews. I am aware of the workarounds to impose simple constraints via monotonic transformations, but "real" inequality constraints would make life a whole lot easier. The workarounds also do not work with limited data availability, e.g. 25 observations are insufficient to use a transformation that imposes 0<ci<1 and c1+c2+c3...=1.
Given my limited programming experience, and my full-time job in a different function at IHS, I currently lack the necessary skill and time to undertake this venture myself.

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

Re: OLS with inequality constraints

Postby EViews Gareth » Tue Jul 02, 2013 8:02 am

I'm not sure what you're asking here...

CCB
Posts: 4
Joined: Mon Jul 01, 2013 11:53 pm

Re: OLS with inequality constraints

Postby CCB » Tue Jul 02, 2013 1:10 pm

I was wondering whether somebody has already written a program that can handle OLS with inequality constraints, or whether such a feature is planned for Eviews in the near future. Matlab, for instance, has the function "lsqlin" which efficiently estimates OLS with inequality constraints and equality constraints simultaneously. In practical work, this feature would really make life a lot easier.

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

Re: OLS with inequality constraints

Postby EViews Gareth » Tue Jul 02, 2013 2:04 pm

I'm aware of no such program.

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: OLS with inequality constraints

Postby startz » Tue Jul 02, 2013 2:32 pm

I was wondering whether somebody has already written a program that can handle OLS with inequality constraints, or whether such a feature is planned for Eviews in the near future. Matlab, for instance, has the function "lsqlin" which efficiently estimates OLS with inequality constraints and equality constraints simultaneously. In practical work, this feature would really make life a lot easier.
It might be easiest to call lsqlin directly by connecting EViews to Matlab. (I imagine there is an equivalent R routine as an alternative.)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest