* ================================================================== * FILE: mixed006 multiple regression.sps . * NOTES: Use MIXED procedure to perform multiple regression . * DATE: 29-Mar-2006 . * AUTHOR: Bruce Weaver, bweaver@lakeheadu.ca . * ================================================================== . * Use the general social survey data file . define !spss ()'C:\Program Files\SPSS\'!enddefine. get file = !spss + '1991 U.S. General Social Survey.sav' . * Perform simple linear regression with REGRESSION, * UNIANOVA, and MIXED . * Use the /TEST subcommand so that there are separate * F-tests for the two variables in the ANOVA summary table. REGRESSION /STATISTICS COEFF OUTS CI R ANOVA /DEPENDENT prestg80 /METHOD=TEST (age) (educ) . UNIANOVA prestg80 WITH age educ /METHOD = SSTYPE(3) /PRINT = PARAMETER /DESIGN = age educ . MIXED prestg80 WITH age educ /FIXED = age educ | SSTYPE(3) /print = solution . * ------ Now add an interaction term ------------ . compute AGExED = age*educ. exe. REGRESSION /STATISTICS COEFF OUTS CI R ANOVA /DEPENDENT prestg80 /METHOD=TEST (age) (educ) (AGExED) . UNIANOVA prestg80 WITH age educ /METHOD = SSTYPE(3) /PRINT = PARAMETER /DESIGN = age educ age*educ. MIXED prestg80 WITH age educ /FIXED = age educ age*educ | SSTYPE(3) /print = solution . * ================================================================== .