tricks with hicks: stata gmm code for nonlinear iv estimation

6
EASI demand system The estimation problem The Stone Index Approach Estimation Procedure Tricks with Hicks: Stata GMM code for nonlinear IV estimation Carl H Nelson Ag. and Con. Economics Univ. of Illinois Urbana-Champaign Stata Conference, Chicago 7/14/11

Upload: others

Post on 31-Jul-2022

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Tricks with Hicks: Stata GMM code for nonlinear IV estimation

EASI demandsystem

Theestimationproblem

The StoneIndexApproach

EstimationProcedure

Tricks with Hicks: Stata GMM code fornonlinear IV estimation

Carl H Nelson

Ag. and Con. EconomicsUniv. of Illinois Urbana-Champaign

Stata Conference, Chicago7/14/11

Page 2: Tricks with Hicks: Stata GMM code for nonlinear IV estimation

EASI demandsystem

Theestimationproblem

The StoneIndexApproach

EstimationProcedure

Background of estimation problem

Arthur Lewbel and Krishna Pendakur “Tricks with Hicks:the EASI Demand System," American EconomicReview, June, 2009.Consumer demand estimation based one(p,u) = minq{p · q|U(q) = u}Functional forms invertible in u to obtain empiricalequations.Almost always express ln e(ln p,u). Differentiationyields budget shares si = piqi/w .Gorman and Lewbel show the maximum number ofexpenditure arguments is 3.Curvature of budget shares no greater than quadratic.

Page 3: Tricks with Hicks: Stata GMM code for nonlinear IV estimation

EASI demandsystem

Theestimationproblem

The StoneIndexApproach

EstimationProcedure

Rank example – Mexican food demand

..

Page 4: Tricks with Hicks: Stata GMM code for nonlinear IV estimation

EASI demandsystem

Theestimationproblem

The StoneIndexApproach

EstimationProcedure

Exact Stone Index for Rank > 3

Utility, u, is ordinally equivalent to the Stone indexy = w − s′ ln pIntroduce demographics z and preferenceheterogeneity ε.Example: ln(e(p,u, z, ε)) = u + ln(p)m(u, z) + ln(p)εs = m(u, z) + ε ⇒ u = y = ln(w)− ln(p)s ⇒ s =m(y , z) + ε

In general, no closed form solution for u, except forspecial forms of m(u, z).Estimable, because function of observables aftersubstitution of y .u is linear function of ln p.

Page 5: Tricks with Hicks: Stata GMM code for nonlinear IV estimation

EASI demandsystem

Theestimationproblem

The StoneIndexApproach

EstimationProcedure

Exact Affine Stone Index Model

The Exact Stone Index is too restrictive forrepresentation of consumer behavior.Make u ordinally equivalent to an affine function of y .

e(p,u, z, ε) = u + p′[∑5

r=0 br ur + Cz + Dzu]+∑L

l=012zlp′Alp + 1

2p′Bpu + p′ε

m(u, z) =∑5

r=0 br ur + Cz + Dzu

s =∑5

r=0 br ur + Cz + Dzu +∑L

l=0 zlAlp + Bpu + ε

So, y =w−p′s+

∑Ll=0 zl p′Al p/2

1−p′Bp/2

And s =∑5

r=0 br y r + Cz + Dzy +∑L

l=0 zlAlp + Bpy + ε

Page 6: Tricks with Hicks: Stata GMM code for nonlinear IV estimation

EASI demandsystem

Theestimationproblem

The StoneIndexApproach

EstimationProcedure

The Article and the AER Software Archive

Substitute y in s. Then s is endogenous and can beinstrumented by p, z and their functions.IV estimation of nonlinear system of equations byFRML in TSP.AER Software archive contains Stata code forestimation.Iterative linear estimation with linear 3SLS in thesecond stage treating y as endogenous.Introduction of gmm command in Stata 10 makes IVestimation of nonlinear system in Stata feasible.