Miscellaneous Code

I forget code sometimes, so I’m putting some examples here for my own reference.

MATLAB

R

Cheat Sheets

bias-corrected and accelerated block bootstrap: view code, download script

Notebooks

When using interactive scripts, press Shift + Enter to proceed step-by-step; or click on Runtime -> Run all to run the entire script. It will give a warning but I can assure you that my R script will not steal your credit card number.

Python

Cheat Sheets

Notebooks

When using interactive scripts, press Shift + Enter to proceed step-by-step; or click on Runtime -> Run all to run the entire script. It will give a warning but I can assure you that my Python script will not steal your social security number.

Stata

converting FRED dates into Stata dates: view code, do-file