structtoolbox

27

Upload: philipp-eisenhauer

Post on 27-Jan-2015

104 views

Category:

Education


0 download

DESCRIPTION

Toolbox for the illustration of reliable structural estimation.

TRANSCRIPT

Page 1: StructToolbox

Estimate Responsibly

Reliable Estimation of Structural Economic Models

Philipp Eisenhauer

Page 2: StructToolbox

Scientically well-posed models make explicit the assump-

tions used by analysts regarding preferences, technology,

and information available to agents, the constraints under

which they operate, and the rules of interaction among

agents in market and social settings. (Heckman, 2008)

Page 3: StructToolbox

StructuralEconometrics

Programmer

Economist

Econometrician

Page 4: StructToolbox

Economist

Page 5: StructToolbox

Agent Behavior

I Objectives

I Preferences

I Constraints

I Institutional

I Information

Economic Environment

I Equilibrium

I Shocks

I Interactions

Page 6: StructToolbox

Michael P. Keane, Petra E. Todd, and Kenneth I. Wolpin (2011).

The Structural Estimation of Behavioral Models: Discrete Choice

Dynamic Programming Methods and Applications. Handbook of

Labor Economics, Elsevier.

Page 7: StructToolbox

Agent Decision Problem

Vt(Ωit) = maxdit

E

[τ=T∑τ=t

δτ−t [U1

iτdiτ + U0

iτ (1− d1τ )]

∣∣∣∣∣Ωiτ

]

Uit = cit + α(1− dit) with αit = κitβκ + βnnit + εit

cit = yit + witdit − (π − τ)nitdit

Page 8: StructToolbox

Labor Market

wit = zitγ1 + γ2hit + ηit ,

where hit =∑τ=t−1

τ=1diτ .

Page 9: StructToolbox

Shock Structure

εitηit

∼ N

0

0

,

σ2ε σε,η

σε,η σ2η

Page 10: StructToolbox

Econometrician

Page 11: StructToolbox

Conguration Files

structToolbox-estimation structToolbox-simulation

Page 12: StructToolbox

Conguration Files

I Initialization

I Optimization

Page 13: StructToolbox

Exploring the Commands

@heracles:$ structToolbox-simulation -h

@heracles:$ structToolbox-simulation -init init.ini

@heracles:$ structToolbox-estimation -h

@heracles:$ structToolbox-estimation -init init.ini

@heracles:$ structToolbox-cleanup

Page 14: StructToolbox

Programmer

Page 15: StructToolbox

Economy

Agents Parameters

Decision

Tree

Page 16: StructToolbox

Tree Class

Class that captures the institutional constraints.

Methods

I addNode

I getNodes

Attributes

I nodes

Page 17: StructToolbox

Parameter Class

Class for the parametrization of the economic environment.

Methods

I addParameters

I getParameters

Attributes

I paraObjs

Page 18: StructToolbox

Agent Class

Class that describes the agent behavior in the economic

environment.

Methods

I step

I _evaluateNodes

Attributes

I attributes

I parasObj

I treeObj

Page 19: StructToolbox

Economy Class

Class that collects all economy wide information.

Methods

I simulate

Attributes

I attributes

I parasObj

I treeObj

Page 20: StructToolbox

Additional Topics

I High Performance Computing

Replacement of selected Python functions by Fortran counter-

parts and use of mpi4py for parallel evaluation of likelihood

function.

I Automatic Build Process

Cleanup and compilation of Fortan routines using waf.

I Unit Testing

Automatic execution of unit testing routines during build process

using nosetest.

Page 21: StructToolbox

Final Remarks

Page 22: StructToolbox

Test of Reliability

Fit structural model to

observed data.ψobs

Simulate synthetic dataset

using estimates.

Fit structural model to

synthetic data.ψsyn

Compare

Page 23: StructToolbox

Transparency, Recomputability, and Extendibility

http://www.policy-lab.org/teaching/struct-toolbox

I Documentation

I Source Code

I Test Suite

I Download

Page 24: StructToolbox

Philipp Eisenhauer

Mail [email protected]

Web http://www.policy-lab.org/peisenha

Repository https://github.com/peisenha

Page 25: StructToolbox

Appendix

Page 26: StructToolbox

References

Page 27: StructToolbox

Heckman, J. J. (2008). Econometric Causality. International

Statistical Review, 76(1):127.

Keane, M. P., Todd, P. E., and Wolpin, K. I. (2011). The

Structural Estimation of Behavioral Models: Discrete Choice

Dynamic Programming Methods and Applications. In

Ashenfelter, O. and Card, D., editors, Hanbook of Labor

Economics, volume 4A, pages 331461. Elsevier Science.