opensourceecon / laborcalibrate Goto Github PK
View Code? Open in Web Editor NEWCalibration of disutility of labor parameters in overlapping generations model
Calibration of disutility of labor parameters in overlapping generations model
This issue lays out the structure of this calibration. The steady-state parameter section of the code in execute.py
should have a parameter named calibrate_n
. This parameter should be a boolean that equals True
if you want to calibrate the S
disutility of labor level parameters chi^n_s
. Its value should be set to False
if one does not want to estimate those parameters and just take them as exogenous inputs.
If calibrate_n = True
, then the code must perform two steps.
Use the household Euler equations for labor supply to calculate chi^n_s_hat
. Use CPS data for labor supply. @hayleefay and I wrote some nice code for this in the CPS_hrs_age
repository. Get consumption data from the Consumer Expenditure Survey. The chi^n_s_hat
values are related to the chi_n_s
values in the model by the equation chi_n_s = (factor ** (sigma - 1)) * chi_n_s_hat
.
Given the chi^n_s_hat
values calculated from the Euler equations and a guess for the factor
, we can solve the model. We solve for the factor
by including it in the outer loop of the steady-state solution method with the interest rate r
, such that factor = (data avg hh inc) / (model avg ss hh inc)
.
If calibrate_n = False
, then solve the model with just r
in the outer loop of the steady-state computation.
In calibrating this model, we have to incorporate consumption data. The best source for consumption expenditures in the United States is the Consumer Expenditure Survey (CEX). We need data on household consumer expenditure by age of the primary respondent (head of household). I see two ways that we can do this.
Each of these methods has unique advantages and disadvantages. Method 1 is less precise but significantly easier than method 2. Although it is tricky to estimate a smooth curve whose integral over a particular portion (or even average across discrete one-year age bins) equals the average in the summary data. Method 2 is more accurate, although might be significantly harder than method 1 due to the need to access, manipulate, and clean the source data. Method 2 also includes more noise in the averages from year to year.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.