Skip to content

Commit 3bc8d28

Browse files
authored
Merge pull request #6 from rickecon/chaps
Merging
2 parents f4e2bf1 + 699661f commit 3bc8d28

File tree

16 files changed

+432
-38
lines changed

16 files changed

+432
-38
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
| --- | --- |
55
| Org | [![OSE Lab cataloged](https://img.shields.io/badge/OSE%20Lab-catalogued-critical)](https://github.com/OpenSourceEcon) [![OS License: AGPL-3.0](https://img.shields.io/badge/OS%20License-AGPL%203.0-yellow)](https://github.com/OpenSourceEcon/CompMethods/blob/main/LICENSE) |
66
| Package | [![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-31013/) [![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3115/) [![PyPI Latest Release](https://img.shields.io/pypi/v/compmethods.svg)](https://pypi.org/project/compmethods/) [![PyPI Downloads](https://img.shields.io/pypi/dm/compmethods.svg?label=PyPI%20downloads)](https://pypi.org/project/compmethods/) |
7-
| Testing | ![example event parameter](https://github.com/OpenSourceEcon/CompMethods/actions/workflows/build_and_test.yml/badge.svg?branch=main) ![example event parameter](https://github.com/OpenSource/CompMethods/actions/workflows/deploy_docs.yml/badge.svg?branch=main) ![example event parameter](https://github.com/OpenSourceEcon/CompMethods/actions/workflows/check_format.yml/badge.svg?branch=main) [![Codecov](https://codecov.io/gh/OpenSourceEcon/CompMethods/branch/main/graph/badge.svg)](https://codecov.io/gh/OpenSourceEcon/compmethods) |
7+
| Testing | ![example event parameter](https://github.com/OpenSourceEcon/CompMethods/actions/workflows/build_and_test.yml/badge.svg?branch=main) ![example event parameter](https://github.com/OpenSourceEcon/CompMethods/actions/workflows/deploy_docs.yml/badge.svg?branch=main) ![example event parameter](https://github.com/OpenSourceEcon/CompMethods/actions/workflows/check_format.yml/badge.svg?branch=main) [![Codecov](https://codecov.io/gh/OpenSourceEcon/CompMethods/branch/main/graph/badge.svg)](https://codecov.io/gh/OpenSourceEcon/compmethods) |
88

99
This repository contains the source material, code, and data for the book, [*Computational Methods for Economists using Python*](https://opensourceecon.github.io/CompMethods/), by Richard W. Evans (2023). This book is freely available online as an executable Jupyter Book at https://opensourceecon.github.io/CompMethods.
1010

docs/book/CompMethods_references.bib

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,42 @@ @BOOK{AddaCooper:2003
55
YEAR = {2003},
66
}
77

8+
@ARTICLE{AttanasioEtAl:2020,
9+
AUTHOR = {Orazio Attanasio and Sarah Cattan and Emla Fitzsimons and Costas Meghir and Marta {Rubio-Codina}},
10+
TITLE = {Estimating the Production Function for Human Capital: Results from a Randomized Control Trial in Colombia},
11+
JOURNAL = {American Economic Review},
12+
YEAR = {2020},
13+
volume = {110},
14+
number = {1},
15+
pages = {48-85},
16+
month = {January},
17+
url = {https://pubs.aeaweb.org/doi/pdfplus/10.1257/aer.20150183},
18+
}
19+
20+
@ARTICLE{BaileyEtAl:2019,
21+
AUTHOR = {Martha J. Bailey and Olga Malkova and Zo\"{e} M. McLaren},
22+
TITLE = {Does Access to Family Planning Increase Children's Opportunities? Evidence from the War on Poverty and the Early Years of Title X},
23+
JOURNAL = {Journal of Human Resources},
24+
YEAR = {2019},
25+
volume = {54},
26+
number = {4},
27+
pages = {825-856},
28+
month = {Fall},
29+
url = {https://jhr.uwpress.org/content/54/4/825},
30+
}
31+
32+
@ARTICLE{BarskySims:2012,
33+
AUTHOR = {Barsky and Sims},
34+
TITLE = {Information, Animal Spirits, and the Meaning of Innovations in Consumer Confidence},
35+
JOURNAL = {American Economic Review},
36+
YEAR = {2012},
37+
volume = {102},
38+
number = {4},
39+
pages = {1343-1377},
40+
month = {June},
41+
url = {https://pubs.aeaweb.org/doi/pdfplus/10.1257/aer.102.4.1343},
42+
}
43+
844
@ARTICLE{BrockMirman:1972,
945
AUTHOR = {William A. Brock and Leonard J. Mirman},
1046
TITLE = {Optimal Economic Growth and Uncertainty: The Discounted Case},
@@ -156,6 +192,18 @@ @ARTICLE{NeweyWest:1987
156192
month = {May}
157193
}
158194

195+
@ARTICLE{Rust:1987,
196+
AUTHOR = {John Rust},
197+
TITLE = {Optimal Replacement of GMC Bus Engines: An Empirical Model of Harold Zurcher},
198+
JOURNAL = {Econometrica},
199+
YEAR = {1987},
200+
volume = {55},
201+
number = {5},
202+
pages = {999-1033},
203+
month = {September},
204+
url = {https://www.jstor.org/stable/1911259},
205+
}
206+
159207
@ARTICLE{Rust:2010,
160208
AUTHOR = {John Rust},
161209
TITLE = {Comments on: `Structural vs. Atheoretic Approaches to Econometrics'},
@@ -176,3 +224,15 @@ @INCOLLECTION{Smith:2020
176224
editor = {Matias Vernengo and Esteban Perez Caldentey and Barkley J. Rosser Jr.},
177225
url = {http://www.econ.yale.edu/smith/palgrave7.pdf},
178226
}
227+
228+
@ARTICLE{StraubWerning:2020,
229+
AUTHOR = {Ludwig Straub and Iv\'{a}n Werning},
230+
TITLE = {Positive Long-run Capital Taxation: Chamley-Judd Revisited},
231+
JOURNAL = {American Economic Review},
232+
YEAR = {2020},
233+
volume = {110},
234+
number = {1},
235+
pages = {86-119},
236+
month = {January},
237+
url = {https://pubs.aeaweb.org/doi/pdfplus/10.1257/aer.20150210},
238+
}

docs/book/_config.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,9 @@ repository:
7575
branch: main
7676
path_to_book: "docs/book"
7777

78-
#######################################################################################
79-
# Advanced and power-user settings
80-
sphinx:
81-
extra_extensions : ['sphinx.ext.autodoc', 'sphinx.ext.mathjax',
82-
'sphinx.ext.viewcode', 'sphinx.ext.napoleon',
83-
'alabaster'] # A list of extra extensions to load by Sphinx.
84-
config : # key-value pairs to directly over-ride the Sphinx configuration
85-
bibtex_reference_style: author_year
86-
mathjax_path : https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
87-
8878
#######################################################################################
8979
# Advanced Sphinx settings
9080
sphinx:
91-
extra_extensions: ['sphinx.ext.autodoc', 'sphinx.ext.mathjax',
92-
'sphinx.ext.viewcode', 'sphinx.ext.napoleon',
93-
'alabaster', 'sphinx_exercise'] # A list of extra extensions to load by Sphinx.
9481
config: # key-value pairs to directly over-ride the Sphinx configuration
9582
bibtex_reference_style: author_year
9683
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
@@ -104,4 +91,6 @@ sphinx:
10491
- "sphinx.ext.viewcode"
10592
- "sphinx.ext.napoleon"
10693
- "sphinx.ext.mathjax"
94+
- "alabaster"
10795
- "sphinx_exercise"
96+
- "sphinx_proof"

docs/book/_static/custom.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* docs/book/_static/custom.css */
2+
3+
:root {
4+
--background-color: rgba(55, 253, 20, 0.158);
5+
--border-color: #9cfd14bb;
6+
}
7+
8+
div.green {
9+
background-color: var(--background-color);
10+
border-color: var(--border-color);
11+
}
12+
13+
div.green p.admonition-title {
14+
background-color: var(--background-color);
15+
}

docs/book/appendix/glossary.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Box, Inc.
2020
branch
2121
TODO: define branch
2222
23+
calibration
24+
TODO
25+
2326
centralized version control system
2427
A centralized version control system or CVCS is an approach to version control in which all the files in a {term}`repository` as well as the change history (content and timing) are located on a central {term}`remote` server. User's check out versions of files from the repository and check them back in, creating new change history on the central server.
2528
@@ -38,12 +41,21 @@ commit
3841
continuous integration
3942
Continuous integration or continuous integration unit testing is...
4043
44+
data generating process (DGP)
45+
The broadest definition of a data generating process (DGP) is a complete description of the mechanism that causes some observed phenomenon with all its dependencies. Unfortunately, in most realistic systems, this definition is too complex. A more practical definition of a data generating process is a simplified version of the process that causes some observed phenomenon with its key dependencies. The concept of a DGP is very similar to the concept of a {term}`model` . A key characteristic of a DGP is that it must be specified in such as way that it could be used to simulate data.
46+
4147
distributed version control system
4248
A *distributed version control system* or DVCS is {term}`version control system` software on any computer, {term}`local` or {term}`remote`, that tracks the entire history of changes to a {term}`repository` and coordinates and organizes collaboration among multiple users. It is distributed in the sense that multiple {term}`clone`s of a single {term}`remote` repository have the same full history of that repository.
4349
4450
Dropbox
4551
TODO: define Dropbox
4652
53+
endogenous variables
54+
Endogenous variables are outputs of the model or dependent on exogenous variables. These can include portions of the data $x$, sometimes designated as $y$ as in $y = g(x,\theta)$.
55+
56+
exogenous variables
57+
Exogenous variables are inputs to the model, taken as given, or from outside the model. These can include both data $x$ and parameters $\theta$.
58+
4759
fork
4860
TODO: define fork
4961
@@ -83,6 +95,9 @@ local version control system
8395
merge
8496
TODO: create *merge* entry...
8597
98+
model
99+
A model is a set of cause and effect mathematical relationships, often specified with parameters $\theta$, among data $x$ or $(x,y)$ used to understand, explain, and predict phenomena. A model might be specified as $g(x,\theta) = 0$ or $y = g(x,\theta)$, where $g$ is a function or vector of functions that represents the mathematical relationships between variables and parameters.
100+
86101
OG-Core
87102
*`OG-Core`* is an open source large scale overlapping generations macroeconomic model of fiscal policy. This model is general and is a dependency of country calibrations that use `OG-Core`, such as `OG-USA`.
88103
@@ -92,6 +107,12 @@ open source
92107
pull request
93108
TODO: define *pull request*...
94109
110+
reduced form estimation
111+
TODO
112+
113+
reduced form model
114+
A reduced form model in economics is a model in which the equations are either not derived from behavioral equations or are only implicitly a linear approximation of some more complicated model. However, because they are atheoretical and often nonparametric, machine learning models can be categorized as reduced form. Reduced form models are most often static, although time series econometric models are categorized as reduced form.
115+
95116
remote
96117
*Remote* is a descriptor that refers to files that reside or operations that are carried out on a server to which a user has access using the internet.
97118
@@ -101,6 +122,12 @@ repository
101122
source code management service
102123
A *source code management service* is a {term}`cloud` platform that hosts computer code files and provides either {term}`centralized version control system` (CVCS) or {term}`distributed version control system`. As the central hub of either CVCS or DVCS, the source code management service provides the platform and rules for distributed code collaboration. Leading examples are {term}`GitHub` and {term}`Bitbucket`.
103124
125+
structural estimation
126+
TODO
127+
128+
structural model
129+
A structural model in economics is a model in which the mathematical relationships among variables and parameters are derived from individuals', firms', or other organizations' optimization. These are often referred to as behavioral equations. Structural models can include linear models and linear approximations. But most often, structural models are nonlinear and dynamic.
130+
104131
unit testing
105132
Unit testing is...
106133

docs/book/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# conf.py
2+
3+
html_static_path = ["./_static"]
4+
5+
# CSS files
6+
html_css_files = [
7+
"custom.css",
8+
]
9+
10+
# Get rid of transitions error/warning
11+
myst_footnote_transition = False

docs/book/struct_est/GMM.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(Chap_GMM)=
22
# Generalized Method of Moments Estimation
33

4-
Put GMM chapter here.
4+
The most recent version of the [`GMMest.ipynb`](https://github.com/rickecon/StructEst_W20/blob/master/Notebooks/GMM/GMMest.ipynb) notebook is currently in the [StructEst_W20](https://github.com/rickecon/StructEst_W20) repository in the [`/Notebooks/GMM`](https://github.com/rickecon/StructEst_W20/tree/master/Notebooks/GMM) directory. All the accompanying data and images are also in that directory. I will be updating this chapter to include all the content from the [`GMMest.ipynb`](https://github.com/rickecon/StructEst_W20/blob/master/Notebooks/GMM/GMMest.ipynb) notebook along with exercises and lecture content from the GMM section of that course.
55

66

77
(SecGMMFootnotes)=

docs/book/struct_est/MaxLikelihood.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(Chap_MaxLikeli)=
22
# Maximum Likelihood Estimation
33

4-
Put maximum likelihood estimation chapter here.
4+
The most recent version of the [`MLest.ipynb`](https://github.com/rickecon/StructEst_W20/blob/master/Notebooks/MLE/MLest.ipynb) notebook is currently in the [StructEst_W20](https://github.com/rickecon/StructEst_W20) repository in the [`/Notebooks/MLE`](https://github.com/rickecon/StructEst_W20/tree/master/Notebooks/MLE) directory. All the accompanying data and images are also in that directory. I will be updating this chapter to include all the content from the [`MLest.ipynb`](https://github.com/rickecon/StructEst_W20/blob/master/Notebooks/MLE/MLest.ipynb) notebook along with exercises and lecture content from the maximum likelihood estimation section of that course.
55

66

77
(SecMaxLikeliFootnotes)=

0 commit comments

Comments
 (0)