{"id":19634112,"url":"https://github.com/pmichaillat/countercyclical-multiplier","last_synced_at":"2025-10-17T04:15:06.298Z","repository":{"id":98753479,"uuid":"473261025","full_name":"pmichaillat/countercyclical-multiplier","owner":"pmichaillat","description":"Code and data for the paper \"A Theory of Countercyclical Government Multiplier\"","archived":false,"fork":false,"pushed_at":"2024-02-25T06:51:42.000Z","size":75,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-09T16:06:29.439Z","etag":null,"topics":["business-cycles","dynare","fiscal-multiplier","fiscal-policy","job-rationing","matlab","new-keynesian-model","paper-with-code","public-employment","unemployment"],"latest_commit_sha":null,"homepage":"https://pascalmichaillat.org/2/","language":"AMPL","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmichaillat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-23T16:01:49.000Z","updated_at":"2024-09-28T16:54:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"f8c13cd8-f38b-4ef0-b0b1-9d682c0770ec","html_url":"https://github.com/pmichaillat/countercyclical-multiplier","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmichaillat%2Fcountercyclical-multiplier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmichaillat%2Fcountercyclical-multiplier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmichaillat%2Fcountercyclical-multiplier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmichaillat%2Fcountercyclical-multiplier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmichaillat","download_url":"https://codeload.github.com/pmichaillat/countercyclical-multiplier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240936656,"owners_count":19881360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["business-cycles","dynare","fiscal-multiplier","fiscal-policy","job-rationing","matlab","new-keynesian-model","paper-with-code","public-employment","unemployment"],"created_at":"2024-11-11T12:19:35.742Z","updated_at":"2025-10-17T04:15:06.284Z","avatar_url":"https://github.com/pmichaillat.png","language":"AMPL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Theory of Countercyclical Government Multiplier: Code and Data\n\nThis repository contains the code and data accompanying the paper \"A Theory of Countercyclical Government Multiplier\", written by [Pascal Michaillat](https://pascalmichaillat.org), and published in the [American Economic Journal: Macroeconomics](https://doi.org/10.1257/mac.6.1.190) in January 2014.\n\n## Paper webpage\n\nThe paper is available at https://pascalmichaillat.org/2/.\n\n## Data\n\nThe folder `data` contains the datasets used to calibrate the paper's model. The datasets are constructed by the Bureau of Labor Statistics (BLS) and are publicly available. The datasets describe the following labor market variables:\n\n+ `CPS-UL-2012.txt` - Unemployment level from the Current Population Survey (CPS)\n+ `CPS-UR-2012.txt` - Unemployment rate from CPS\n+ `MSPC-EMP-2012.txt` - Employment level from Major Sector Productivity and\nCosts (MSPC)\n+ `MSPC-OUTPUT-2012.txt` - Output level from MSPC\n+ `JOLTS-JOLNF-2012.txt` - Job-opening level in the nonfarm business sector from\nthe Job Opening and Labor Turnover Survey (JOLTS)\n+ `JOLTS-TSRNF-2012.txt` - Total separation rate in the nonfarm business sector\nfrom JOLTS\n+ `CES-EMPNF-2012.txt` - Employment level in the nonfarm supersector from the\nCurrent Employment Survey (CES)\n+ `CES-EMPPRIV-2012.txt` - Employment level in the private supersector from\nCES\n+ `CES-EMPGOV-2012.txt` - Employment level in the government supersector\nfrom the CES\n\nThe readme files `CES_README.txt`, `CPS_README.txt`, `MSPC_README.txt`, and `JOLTS_README.txt` provide details on the data.\n\n## Code\n\nThe paper's results are obtained using MATLAB and Dynare.\n\n### Dynare scripts\n\nThe simulations of the New Keynesian model rely on a number of Dynare scripts, which are directly called by MATLAB scripts. The Dynare scripts simulate the calibrated New Keynesian model in response to a given technology shock, with or without a public-employment response, for different underlying public-employment policies. The typical script is called `modelWxYZ.mod`, where\n\n+ `W` = `NK` is there is no public-employment response, and `W` = `G` if there is a public- employment response simultaneously to the technology shock.\n+ `x` = `m` if the technology shock is negative, and `x` = ` `  if the technology shock is positive.\n+ `Y` = `1`, `3`, `5`, `7`, `9`, `11`, `13`, `17`, `21` indicates the amplitude of the technology shock.\n+ `Z` = `G` if the underlying government policy is to keep public employment at a\nconstant level over time, and `Z` = `B` is the underlying government policy is to keep\npublic employment at a constant fraction of private employment over time.\n\n### MATLAB helper functions\n\nThe MATLAB scripts also call the following MATLAB helper functions:\n\n+ `BLS.m` - Compute the average of key labor market variables in US data for the 2001–2011 period\n+ `STEADYB.m` - Compute the steady state of the calibrated New Keynesian model\n+ `SETUPB.m` - Calibrate the parameters of the New Keynesian model, as summarized in Table 2\n\n### MATLAB scripts\n\nThe following MATLAB scripts compute the simulations discussed in the article and plot the results. These MATLAB scripts call the Dynare scripts that simulate the calibrated New Keynesian model in response to a given technology shock, with or without a public-employment response, when the underlying level of public employment is constant.\n\n+ `plotirfdispeG.m` - Compute the impulse response functions to a positive technology shock with and without a public-employment response. Also compute the corresponding instantaneous multiplier. Impulse response functions are displayed in Figure 2. Instantaneous multiplier is displayed in Figure 4(a).\n+ `plotirfdisprG.m` - Compute the impulse response functions to a negative technology shock with and without a public-employment response. Also compute the corresponding instantaneous multiplier. Impulse response functions are displayed in Figure 3. Instantaneous multiplier is displayed in Figure 4(b).\n+ `plotcumulativeG.m` - Compute the cumulative multipliers corresponding to many technology shocks, both negative and positive. Cumulative multiplier is displayed in Figure 5.\n\nThe following MATLAB script computes the cumulative multipliers that are discussed in Appendix B. This script calls the Dynare scripts that simulate the calibrated New Keynesian model in response to a given technology shock, with or without a public-employment response, when the underlying level of public employment is a constant fraction of private employment. \n\n+ `plotcumulativeB.m` - Compute cumulative multipliers when public employment is a constant fraction of private employment. Cumulative multipliers are displayed in Figure B1.\n\n## Software\n\nThe results were obtained using MATLAB R2012a and Dynare 4.2.5 on macOS Mountain Lion.\n\n## License\n\nThis repository is licensed under the [MIT License](LICENSE.md).\n\n## Related code\n\n+ [MATLAB and Dynare code to reproduce figures 2 and 3](https://github.com/IMFS-MMB/mmb-rep/tree/master/NK_MI14) - Written by the [Macroeconomic Model Database](https://www.macromodelbase.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmichaillat%2Fcountercyclical-multiplier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmichaillat%2Fcountercyclical-multiplier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmichaillat%2Fcountercyclical-multiplier/lists"}