Andrew F. Hayes, Ph.D
http://www.comm.ohio-state.edu/ahayes/macros.htm
Some SPSS and SAS Macros you may find useful.
SOBEL.SPS
Estimates the size of an indirect effect of X on Y through a mediator Z, using both a normal theory (Sobel’s test) and bootstrap approaches.
A SAS version of the macro is also available on this page.
For a copy of the paper describing this macro, see Preacher, K. J., & Hayes, A. F. (2004). SPSS and SAS procedures for estimating indirect effects in simple mediation models.
Behavior Research Methods, Instruments, and Computers, 36, 717-731.
For a PDF, click here.
INDIRECT.SPS
This macro for SPSS and SAS estimates the path coefficients in a multiple mediator model and generates bootstrap confidence intervals (percentile, bias-corrected, and bias-corrected and accelerated) for total and specific indirect effects of X on Y through the mediator(s).
This is macro is far superior to SOBEL.SPS, as it allows for more than one mediator and adjusts all paths for the potential influence of covariates not proposed to be mediators in the model.
For a copy of the paper describing the methods this macro implements, see Preacher, K. J., & Hayes, A. F. (2008). Asymptotic and resampling strategies for assessing and comparing indirect effects in multiple mediator models. Behavior Research Methods, 40, 879-891.
For a PDF, click here.