View on GitHub

psych596

Graduate Statistical Methods for Psychology

Activity #2 - Import and examine data in SPSS

updated Jan 24 2024


Learning Objectives (spss activity)


Step 1 - Get organized and download datasets for this activity

1.1 Set up a typical project work flow consisting of a project folder containing

1.2 Download these files:

NHANES is a large public health dataset - you will work with a small subset of cases and variables.
The data in "cort-hypothetical.txt" are salivary cortisol values (nmol/L) generated for this activity. It is in a tab-delimited format with each line containing ID and cortisol value.

Step 2 - import the data into SPSS

Start SPSS and import the nhanes_selectvars_n500.csv data file:

Step 3 - get descriptives and examine the distribution

3.1 Get descriptives and check the distribution of “Height”

3.2 Filter by Age

Step 4 - Applying a transformation

4.0 Imagine a subset (N=400) of the NHANES participants gave saliva samples

4.1 Now check out the distribution of “cortisol_baseline” - use the tools you've learned so far

4.2 Log transform the cortisol measure

Step 5 - Re-structuring data (wide to long and back again)

Step 5.1 - Use "Data->Restructure" to format the data from a wide format to long

Step 5.2 - Use "Data->Restructure" to format the data from a long format back to wide

That's all for the SPSS part - save your notes and move on to the R/RStudio activity when you are ready