East Carolina University
Department of Psychology
Each of the programs below is in a plain text file. Click the desired link, copy the text into the SAS editor, enter your data, and submit. Alternatively, download *the zip, extract files, submit to SAS.
Test value of rho -- for each test, enter r, rho, n, and alpha. Submit.
Test intercept and/or slope -- enter value of estimator (intercept or slope), null value, standard error, df, alpha, and note. Submit.
Compare two independent correlation coefficients, z test -- enter r1, r2, n1, n2, alpha, and note. Submit.
*Compare two independent regression coefficients -- enter number of predictors, both slopes or intercepts, both sample sizes, alpha, and note. Submit.
Compare two or more independent coefficients -- for each group, enter group number, coefficient, standard error, sample size, and note. Submit.
Compare two non-independent correlations with one variable in common --enter r12, r13, r23, n, alpha, and note. Submit.
*Compare two non-independent correlations with no variables in common -- enter n, r12, r13, r14, r23, r24, r34, alpha, and note. Submit.
Test Hypotheses of Coincidence, Equal Slopes, and Equal Intercepts Using Raw Data, k independent groups -- Tinker with code. Submit.
*Run them all -- edit to point correctly to location of lung data set and then submit.
*Output from them all -- with syntax and a few annotations.
The Lung dataset -- from UCLA -- SAS, SPSS, etc. Alternative link at UCLA
The Lung dataset -- SAS only, available here at ECU
*Updated on the 7th of February, 2013. *Erratum
In SAS 9.3, the default is for output to be in HTML and with ODS graphics enabled when code is submitted from the windowing environment. However, if one submits the code in batch mode (by double clicking on the file name), the default output is plain text (a listing). We have used a "txt" extension rather than an "sas" extension for the modules above to facilitate reading the code from a browser. When users save a module to their computer they are free to change the extension to "sas," if they wish. If SAS is already open, one can "File, Open Program" and bring in the contents of any plain text file, regardless of the extension. The second author typically opens the file with Notepad first, edits the code, and then copies it into the SAS enhanced editor. In the zip, the extensions are "sas."
For the SPSS syntax files, please visit Bruce Weaver's webpage.
Contact Information for
This page most recently revised on the 7th of February, 2013.