Programming a System of Equations
Posted: Tue Mar 06, 2012 9:14 am
What I need to do is estimate a few reaction functions as a system, so the coefficient’s (cross-price elasticities) are the same.
For example, I have reaction functions for shares of Natural Gas, Light Fuel Oil (LFO) and Electricity:
equation rsgas.ls rsgas c rpgas rplfo rpele
equation rslfo.ls rslfo c rpgas rplfo rpele
equation rsele.ls rsele c rpgas rplfo rpele
I know I need to drop one equation to avoid over-determination (say LFO) and then estimate the electricity and the natural gas equations at the same time with the cross-price elasticity coefficients constrained to equal each other and then the fuel oil share would be 1- the estimated shares of natural gas and electricity. However, I’m not exactly sure how to program this into E-views
For example, I have reaction functions for shares of Natural Gas, Light Fuel Oil (LFO) and Electricity:
equation rsgas.ls rsgas c rpgas rplfo rpele
equation rslfo.ls rslfo c rpgas rplfo rpele
equation rsele.ls rsele c rpgas rplfo rpele
I know I need to drop one equation to avoid over-determination (say LFO) and then estimate the electricity and the natural gas equations at the same time with the cross-price elasticity coefficients constrained to equal each other and then the fuel oil share would be 1- the estimated shares of natural gas and electricity. However, I’m not exactly sure how to program this into E-views