Appendix A: SAS Programs and Macros


Note: If you've purchased the book, you can download the complete VCD Archive, vcdprog.zip described in Appendix A, containing all macros, datasets and sample programs. The files in the VCD archive have been brought up to date as of 19 Mar 2010. The links below always point to the most current versions.

A.1. The ADDVAR macro: Added variable plots for logistic regression
A.2. The AGREE program: Observer agreement chart
A.3. The BIPLOT macro: Generalized biplots
A.4. The CATPLOT macro: Plot results from PROC CATMOD
A.5. The CORRESP macro: Plotting PROC CORRESP
A.6. The DISTPLOT macro: Plots for discrete distributions
A.7. The DUMMY macro: Create dummy variables
A.8. The FOURFOLD program: Fourfold displays for 2 x 2 x k tables
The FFOLD macro: Macro interface to FOURFOLD displays
A.9. The GOODFIT macro: Goodness-of-fit for discrete distributions
A.10. The HALFNORM macro: Half-normal plots for generalized linear models
A.11. The INFLGLIM macro: Influence plots for generalized linear models
A.12. The INFLOGIS macro: Influence plots for logistic regression models
A.13. The INTERACT macro: Create interaction variables
A.14. The LAGS macro: Lagged frequencies for sequential analysis
A.15. The LOGODDS macro: Plot empirical logits for binary data
A.16. The MOSAICS program: SAS/IML modules for mosaic displays
A.17. The MOSAIC macro: Mosaic displays
A.18. The MOSMAT macro: Mosaic matrices
A.19. The ORDPLOT macro: Ord plot for discrete distributions
A.20. The PANELS macro: Arrange multiple plots in panels
A.21. The POISPLOT macro: Poissonness plot
A.22. The POWERLOG macro: Power analysis for logistic regression table
A.23. The POWERRxC macro: Power for two-way frequency tables
A.24. The POWER2x2 macro: Power for 2 x 2 frequency tables
A.25. The ROBUST macro: Robust fitting for linear models
A.26. The ROOTGRAM macro: Hanging rootograms
A.27. The SIEVE program: Sieve diagrams
The SIEVEPLOT macro: Macro interface to sieve diagrams
A.28. The SORT macro: Sort a dataset by the value of a statistic
A.29. The TABLE macro: Construct a grouped frequency table, with recoding
A.30. The TRIPLOT macro: Trilinear plots for n x 3 tables
A.31. Utility macros
A.31.1. BARS: Create an annotate data set to draw error bars
A.31.2. EQUATE: Create AXIS statements for a GPLOT with equated axes
A.31.3. GDISPLA: Device-independent DISPLAY/NODISPLAY control
A.31.4. GENSYM: Generate SYMBOL statements for multiple curves
A.31.5. GSKIP: Device independent macro for multiple plots
A.31.6. LABEL: Label points on a plot
A.31.7. POINTS: Create an Annotate dataset to draw points in a plot
A.31.8. PSCALE: Construct an Annotate dataset for a probability scale}