Building a survivor curve from observed data
Posted: December 22, 2012 Filed under: Data and code, Teaching | Tags: duration modeling, survival function Leave a comment »A few weeks ago we were asked to teach the basics of (interpreting) duration models to a group of consumers without using any math. When I learned about this it involved a lot of math and Stata, and when you look around the web it’s usually presented similarly. So this was a bit of a challenge.
A nice thing about duration analysis though is that a lot of the key concepts are already explicitly graphical, like survival curves (wikipedia) and hazard rates. Below, for example, is a survival curve for cancer patients diagnosed with acute lymphoblastic leukemia between 1988 and 2008 in the US, from SEER fast stats:
Programming MLE models in Stata
Posted: January 30, 2011 Filed under: Data and code, Teaching | Tags: coding, Stata Leave a comment »Another set of notes from when I was TA for our Advanced Quantitative Methods course with Prof. Matt Golder in 2008. The notes for Programming MLE models in Stata (pdf) walk you through how to recreate your own logit regression command and ado files for Stata, as well as how to use simulations to check your model. Here are also the associated ado and do files.
The notes are closely based on Maximum Likelihood Estimation with Stata (2006, see full citation in the notes), which is definitely worth it if you are considering writing your own MLE commands in Stata.
Stata Basics
Posted: January 30, 2011 Filed under: Data and code, Teaching | Tags: Stata Leave a comment »A couple of lab notes from 2009, when I was TA for our Basic Quantitative Methods course:
Review of Basic Stata use (pdf) and associated files (zip folder).
OLS regression (pdf) and associated files (zip folder).
OLS Quantities of Interest (pdf) and associated files (zip folder).
Logit Quantities of Interest (pdf) and associated files (zip folder).
