Skip to content

Instantly share code, notes, and snippets.

View justinian336's full-sized avatar
🌴
Chilling out

Juan Martínez justinian336

🌴
Chilling out
  • Sansan
  • Japan
View GitHub Profile
@justinian336
justinian336 / structural-estimation-series-III.ipynb
Last active June 1, 2020 05:18
Structural Estimation Series III
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@justinian336
justinian336 / nfxp.py
Created September 21, 2019 12:18
John Rust's NFXP algorithm
# Lazy implementation of John Rust's Nested Fixed Point (NFXP) algorithm.
# Based on https://notes.quantecon.org/submission/5c4906d9f68373000f919cd0
# Download first the Aguirregabiria and Mira NPL code from here: http://individual.utoronto.ca/vaguirre/wpapers/program_code_survey_joe_2008.html
import time
import numpy as np
import pandas as pd
from datetime import date
from statsmodels.base.model import GenericLikelihoodModel
from scipy import stats