SPSS revision Flashcards

1
Q

Syntax for Opening SPSS file

A

GET FILE = “/some_directory/file.spss”.
SAVE OUTFILE = “/some_directory/file.spss”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Opening excel datafile

A

GET DATA / type = xls / file = “/some_directory/file.xls” / SHEET = name ‘Sheet name’ / readnames = on.

Pull out a specific sheet, only if Excel has \> 1 sheet
# Get the variable names from the top row
DATASET NAME = somename.
# Give this dataset a name
DATASET ACTIVATE somename.
# Make a specific dataset the active dataset

EXECUTE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Wide format vs long format

A

Wide format is where all data for a participant is contained in a single row (that is a participant and each variable is a different measure), Long format is where each participant is represented multiple times on different rows (that is data for each participant is spread across multiple rows).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Combining two datasets

A

DATASET ACTIVE some_data_set. # Assuming you have more than one data set open.
MATCH FILES / tables = *
# Add to the original data set.
/ file = <some></some>

/ by some_index.
DATASET NAME our_combined_data_set.

EXECUTE.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly