These are auxiliary functions I wrote for the lme4 package in R for EDPY 667: Multilevel Modeling.