Skip to content

Instantly share code, notes, and snippets.

View EthanDeng's full-sized avatar
温柔正确的人总是难以生存,因为这世界既不温柔,也不正确。

Dongsheng Deng EthanDeng

温柔正确的人总是难以生存,因为这世界既不温柔,也不正确。
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.
@Liam0205
Liam0205 / markdown_test.tex
Last active September 9, 2020 16:17
md -> tex
\documentclass[UTF8]{ctexart}
\usepackage{zhlipsum}
\usepackage{markdown}
\markdownSetup{
renderers = {
link = {#1}, % Render a link as the link label.
emphasis = {\emph{#1}}, % Render emphasis using `\emph`.
},
hybrid = true,
fencedCode=true,
@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