Data entry and preparation
Defining variables
Before you enter your data, you need to define your variable names and types, i.e. you need to define what variables you will be using. You will do this in the Data Editor window, within the Variable View.
Name |
|
Type |
|
Width |
|
Decimals |
|
Label |
|
Values |
|
Missing |
|
Columns |
|
Align |
|
Measure |
|
Role |
|
Shortcuts
Copying variable definition attributes
- In Variable View, click on the cell that has the attribute you want to copy.
- From the menu, click on Edit\Copy.
- Click on the same attribute cell for the variable you wish to apply it to.
- Click on Edit\Paste.
Setting up new variables all with the same attributes
- Define the attributes of the first variable.
- Highlight the variable row.
- From the menu, select Edit\Copy.
- Click on the row number of the next empty row.
- Select Edit\Paste variables.
- Enter the number additional variables you want to add, including the prefix you want to use and the number the new variables will start on.
Data entry using Excel
Data files can be prepared in Excel and them imported into SPSS for analysis. This can be particularly helpful if you have employed survey software (e.g. Qualtrics) to collect your data.
- Set up variable names in Excel, using the first row.
- Enter data for each case. When you have finished, close the Excel document.
- In SPSS, click on File\Open\Data and choose Excel as File type. Click Open.
- Make sure there is a tick in the box ‘Read variable names from the first row of data’.
- Choose File\Save as. Make sure that the Save as Type is set at SPSS statistics (.sav).
- You’ll need to define each of the Labels, Values and Measure information for your variables.