R and SAS Software for the Book:

Adaptive Tests of Significance Using Permutations of Residuals with R and SAS

by T. W. O'Gorman

Published by John Wiley & Sons, 2012, ISBN: 978-0470922255

For SAS macros, it may be necessary to set the virus checker to exclude the process (sas.exe) and/or the temporary file locations.

To obtain the software click on the following links:

Appendix A: R Code for Univariate Adaptive Tests (See note below.)

Appendix B: SAS Macro for Adaptive Tests

Appendix C: SAS Macro for Multiple Comparison Procedures

Appendix D: R Code for Adaptive Tests with Blocking Factors (Includes the R functions teststats, rootcdf, cdfhat, trad.ftest.)

Appendix E: R Code for Adaptive Test with Paired Data (Includes the R functions rootcdf and cdfhat.)

Appendix F: SAS Macro for Adaptive Test with Paired Data (Includes the SAS macro adaptwts.)

Appendix G: R Code for Multivariate Adaptive Tests (Includes the R function cdfhat.) (See note below.)

Appendix H: R Code for Confidence Intervals and Estimates (Includes the R functions rootcdf and cdfhat.)

Appendix I: SAS Macro for Confidence intervals

Appendix J: SAS Macro for Estimates (Includes the SAS macros nextstep and adaptwtsl.)

Note: Faster versions of the R code in Appendix A and Appendix G may be found here.