Stata programs developed by Mark Lunt

Here are some programs I have developed for data analysis and management in stata. I have used them all for analyses, but there may still be bugs in them. In addition, the help files may not be explain in sufficient detail how to use them. I would therefore appreciate being informed of any problems you may have with this software (at

tvc_merge: Merging files of time-varying covariates

propensity: Suite of programs for propensity analysis

optmatch: Optimal Matching

loghockey: Piecewise Linear ("Hockey-Stick") regression

nscores: Transform to and from normal scores

soreg: Stereotype Ordinal Regression

mfracmiss: Proportion of missing information in multiple imputation

dr: Doubly Robust Estimation

Course Materials

stats: Statistical Modelling in Stata Course