
Within SPSS, analyses are generated using either menu
selections or command syntax. Below is a description of how to run
some common multivariate analyses using menu selections. Following
each description is the command syntax used to generate the same analyses
along with a brief explanation of the commands (For more help on using
syntax see: Tips
for SPSS Syntax). To generate the results utilized in these examples
you will need to download the files provided in the Raw
Data section below.
I. Multiple Regression
II. Multivariate Analysis of Variance (MANOVA)
III. Factor Analysis
I. Multiple Regression
Sample question: Does optimism, level of
income, and level of religiousity predict happiness? To answer this
question, you can run a multiple linear regression.

Command Syntax for Regression:
REGRESSIONREGRESSION
/STATISTICS COEFF OUTS R ANOVA ZPP
/DEPENDENT happines
/METHOD=ENTER religiou wealth optimism .
/STATISTICS=COEFF OUTS R ANOVA ZPP- Refer to the command syntax for frequencies for an explanation of this subcommand. To get a complete list of the statistics offered for the regression analysis refer to the help menu in SPSS (i.e., Select Help > Topics on the menu bar which will open the Help Topics window. Click on the Index tab. Type "regression" in the box. Regression will appear in the second box. Highlight the Command Syntax under regression. Click on the Display button.).
/DEPENDENT happines - The "/dependent" subcommand identifies your dependent variable.
/METHOD=ENTER religiou wealth optimism. - The "/method=" subcommand identifies the type of regression analysis (enter runs the general regression) as well as identifies your independent or outcome variable(s).
II. Multivariate Analysis of Variance (MANOVA)
Sample question: Are there differences in participants'
self-reported happiness, as measured by the three subscales of happiness,
based on one's gender and the number of friends a person has (fewer than
five or more than six)? To answer this question you can run a multivariate
ANOVA, with the happiness subscales as the dependent variables and friends
and gender as the independent variables.

Command Syntax for Multivariate ANOVA:
Back to Multivariate Analyses listGLMGLM
subhap1 subhap2 subhap3 BY friends gender
/PRINT = DESCRIPTIVE ETASQ HOMOGENEITY
/DESIGN = friends gender friends*gender .
subhap1 subhap2 subhap3 BY friends gender - This statement indicates the independent and dependent variables to be utilized when conducting the MANOVA. The dependent variables are listed first followed by the independent variables with "By" separating the two.
/PRINT = DESCRIPTIVE ETASQ HOMOGENEITY - The "/print=" subcommand allows the user to print several descriptive and inferential statistical tests that may be important to examine when running a MANOVA. To get a complete list of the statistics offered for the MANOVA refer to the help menu in SPSS (i.e., Select Help > Topics on the menu bar which will open the Help Topics window. Click on the Index tab. Type "GLM" in the box. GLM Multivariate will appear in the second box. Highlight Options under GLM Multivariate. Click on the Display button.).
/DESIGN = friends gender friends*gender. - The "/design=" subcommand identifies the main and interaction effects to be analyzed. To examine main effects you just need to list the variable name (e.g., gender or friends). To examine interaction effects you list the variables you want to interact with a "*" between the variables (e.g., gender*friends).
III. Factor Analysis
Sample question: Do each of the three subscales
represented in the happiness scale form an independent pattern of correlations
delineating them as separate factors? That is, if you examined the
correlations between all items on the happiness scales, would the correlations
be stronger for items that represent each of the single subscales?
Or more precisely, what is the relationship among the happiness items?
Do thematic categories emerge? To answer this question you can run
a Factor Analysis including all the happiness items.



Command Syntax for Factor Analysis:
FACTOR
/VARIABLES hap1 hap2 hap3 hap4 hap5 hap6 hap7 hap8 hap9 hap10 hap11 hap12
/ROTATION OBLIMIN .
FACTOR
/VARIABLES hap1 hap2 hap3 hap4 hap5 hap6 hap7 hap8 hap9 hap10 hap11 hap12 - the "variables" statement indicates which variables are to be included in the analysis.
/ROTATION OBLIMIN. - the "rotation" statement identifies which rotation method to use. In this case the oblimin rotation is used.
Back to Multivariate
Analyses list
To illustrate how to conduct multivariate analyses you will use the following hypothetical data set. The data set contains a 12-item survey measuring happiness along with potential indicators of happiness including religiousity, level of income, optimism, number of friendships and gender. You can either download the SPSS data file or an equivalent Excel file that can be transfered to SPSS (see the files below). To open SPSS Files you will need to make sure SPSS 11.0 is installed on the computer. If SPSS is installed, open the SPSS file using Internet Explorer (Netscape Navigator will not work). To do this, right click on the SPSS link and choose "Save Target As..." and choose a location and file name for the file. Then open up the file in SPSS. If SPSS is not installed on the computer, open the alternative Excel document. The data from an Excel spreadsheet can be later transferred to an SPSS data file, however, the variable information will need to be re-entered (see the variable names and coding below). Please refer to Setting Up Data Files to define variables and enter data into SPSS.
Multivariate SPSS Data File
Multivariate Excel Data File
| Variable Name | Description and Coding |
| id | participant identification number |
| hap1 | I feel that life is rewarding (1=strongly disagree to 5 = strongly agree) |
| hap2 | I often experience joy and elation (1=strongly disagree to 5 = strongly agree) |
| hap3 | I feel I have a great deal of energy (1=strongly disagree to 5 = strongly agree) |
| hap4 | Life is good (1=strongly disagree to 5 = strongly agree) |
| hap5 | I am very happy (1=strongly disagree to 5 = strongly agree) |
| hap6 | I feel fully mentally alert (1=strongly disagree to 5 = strongly agree) |
| hap7 | I laught a lot (1=strongly disagree to 5 = strongly agree) |
| hap8 | I rarely wake up feeling rested (reversed score) (1=strongly disagree to 5 = strongly agree) |
| hap9 | I am satisfied about everything in my life (1=strongly disagree to 5 = strongly agree) |
| hap10 | I find most things amusing (1=strongly disagree to 5 = strongly agree) |
| hap11 | I feel able to take anything on (1=strongly disagree to 5 = strongly agree) |
| hap12 | I do not think that the world is a good place (reversed score) (1=strongly disagree to 5 = strongly agree) |
| subhap1 | Subscale Happiness 1 |
| subhap2 | Subscale Happiness 2 |
| subhap3 | Subscale Happiness 3 |
| religiou | Level of Religiousity (1=not very religious at all to 7=very religious) |
| wealth | Level of Income (1=under 20,000, 2=21,000-40,000, 3=41,000-60,000, 4=61,000-80,000, 5=81,000-100,000, 6=over 100,000) |
| optimism | Optimism Score (1=low optimism to 7 = high optimism) |
| friends | Number of Friendships (1=five or fewer, 2=six or more) |
| gender | Gender (1 = female, 2 = male) |