OpenSourceEconomics / grmpy

Licence: MIT license
Python package for the simulation and estimation of generalized Roy model

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to grmpy

BeaData.jl
A Julia interface for retrieving data from the Bureau of Economic Analysis (BEA).
Stars: ✭ 17 (+21.43%)
Mutual labels:  economics, econometrics
bacondecomp
Bacon-Goodman decomposition for differences-in-differences with variation in treatment timing.
Stars: ✭ 36 (+157.14%)
Mutual labels:  economics, econometrics
priceR
Economics and Pricing in R
Stars: ✭ 32 (+128.57%)
Mutual labels:  economics, econometrics
econ5170
Econ5170@CUHK: Computational Methods in Economics (2020 Spring).
Stars: ✭ 127 (+807.14%)
Mutual labels:  economics, econometrics
ose-course-scientific-computing
course on the basics of scientific computing for economists
Stars: ✭ 21 (+50%)
Mutual labels:  economics, software-engineering
SMC.jl
Sequential Monte Carlo algorithm for approximation of posterior distributions.
Stars: ✭ 53 (+278.57%)
Mutual labels:  economics, econometrics
Econ-Data-Science
Articles/ Journals and Videos related to Economics📈 and Data Science 📊
Stars: ✭ 102 (+628.57%)
Mutual labels:  economics, econometrics
Microeconometrics.jl
Microeconometric estimation in Julia
Stars: ✭ 30 (+114.29%)
Mutual labels:  economics, econometrics
ose-course-data-science
course on data science for economists
Stars: ✭ 81 (+478.57%)
Mutual labels:  economics, econometrics
old nesta daps
[archived]
Stars: ✭ 16 (+14.29%)
Mutual labels:  economics
engineering-management
A list of resources about Software Engineering Management
Stars: ✭ 31 (+121.43%)
Mutual labels:  software-engineering
design-patterns-explained
Explanation for most of the well-known design patterns with examples and figures.
Stars: ✭ 18 (+28.57%)
Mutual labels:  software-engineering
Dev-II
For 'Economics Development II' PhD seminar at CUNY Graduate Center. (older site) Generates docs at:
Stars: ✭ 36 (+157.14%)
Mutual labels:  economics
programming-note
Lecture notes on Computer Science, Web Development, and System Design
Stars: ✭ 199 (+1321.43%)
Mutual labels:  software-engineering
random-dose-of-knowledge
Using the latest Software Engineering practices to create a modern and simple app.
Stars: ✭ 26 (+85.71%)
Mutual labels:  software-engineering
SyntheticControlMethods
A Python package for causal inference using Synthetic Controls
Stars: ✭ 90 (+542.86%)
Mutual labels:  econometrics
swe
Examples and exercises used during Software Engineering course
Stars: ✭ 18 (+28.57%)
Mutual labels:  software-engineering
devlog
Command-line tool for tracking your day-to-day software development work
Stars: ✭ 16 (+14.29%)
Mutual labels:  software-engineering
plur
PLUR (Programming-Language Understanding and Repair) is a collection of source code datasets suitable for graph-based machine learning. We provide scripts for downloading, processing, and loading the datasets. This is done by offering a unified API and data structures for all datasets.
Stars: ✭ 67 (+378.57%)
Mutual labels:  software-engineering
googlemock-example
An example of using Google Mock inspired by Martin Fowler's "Mocks Aren't Stubs".
Stars: ✭ 23 (+64.29%)
Mutual labels:  software-engineering

grmpy

grmpy is an open-source Python package for the simulation and estimation of the generalized Roy model. It serves as a teaching tool to promote the conceptual framework of the generalized Roy model, illustrate a variety of issues in the econometrics of policy evaluation, and showcases basic software engineering practices.
Marginal Treatment Effects (MTE) can be estimated based on a parametric normal model or, alternatively, via the semiparametric method of Local Instrumental Variables (LIV).

You can install grmpy either via pip

$ pip install grmpy

Or download it directly from our GitHub repository and install the package in editable mode

$ git clone https://github.com/OpenSourceEconomics/grmpy.git
$ pip install -e .

Quick Start

Initialization File

grmpy relies on an "initialization.yml" file (referred to as ìnit_file below) to perform both simulation and estimation. For example, check out these two init_files for simulation and parametric estimation as well as a semiparametric estimation setup.

Below you'll find some example code you can copy to jump-start your project.

Simulation

import grmpy

# Specify the initilaization file you want to use, e.g.:
init_file = "ProjectFiles/simulation.yml"

data = grmpy.simulate(init_file)

Estimation

import grmpy

# Specify the initilaization file you want to use, e.g.:
init_file = "ProjectFiles/estimation.yml"

# Parametric Normal Model
rslt = grmpy.fit(init_file, semipar=False)
grmpy.plot_mte(rslt, init_file, color="blue", semipar=False, save_plot="MTE_par.png")

# Local Instrumental Variables (Semiparametric Model)
rslt = grmpy.fit(init_file, semipar=True)
grmpy.plot_mte(rslt, init_file, color="orange", semipar=True, nboot= 250, save_plot="MTE_semipar.png")

Please visit our online documentation for tutorials and more.


docs passing license code style

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].