Witte Lab          

Departments of Epidemiology & Biostatistics, and Urology
University of California, San Francisco


Home
Research
Lab Members
Software
Teaching & Textbook
Biosketch
Links
Personal Info                                             

Last updated: September 11, 2003
©  2002

Multilevel Modeling in Epidemiology with GLIMMIX


This page gives SAS code and a Macro for epidemiologic analysis by hierarchical modeling with the SAS Macro GLIMMIX.  This site complements the manuscript "Multilevel Modeling in Epidemiology with GLIMMIX" by Witte et al. (Epidemiology 2000;11:684-688).  In particular, we provide an electronic version of the SAS code given in the paper's appendix, and a Macro that automates some of the steps required when using GLIMMIX.

To run the Macro, one inputs first- and second-stage data, plus if semi-Bayes, pre-specified second-stage variance values.   As currently written, the Macro reproduces the application given in the corresponding manuscript.


To replicate our hierarchical modeling application with this Macro, follow these steps:

  1. First, click on the link Hmmacros.zip to begin extracting the programs and data given in this zip file. Note: you may need to download the PKZIP Shareware if it is not presently loaded on your computer.
  2. Open this file from its current location. (If your computer automatically saves this file to a disk, then click on the saved file.)
  3. In PKZIP, click "Extract," "Extract files..." and save them to a floppy disk in your a: drive. This will save the following files and data: hmmacro.sas; hm1.sas; the first-stage design matrix, X_dat; disease status, Y_dat; the second-stage design matrix, Z_dat; the second-stage variance values, tau_dat; the potential confounders, W_dat; and GLIMMIX, glmm612.sas.
  4. Open SAS (on your own system), and run the program "hmmacro.sas".