Appendix A1: Datasets for Assignments

Cartoon of a person cleaning a large 3D word 'Data'.

General Social Survey 1972 – 2021 (GSS)

  • General Social Survey (GSS) 1972 to 2021
    • Cross-sectional survey fielded every two years in the U.S.
    • Mainly tracks social and political attitudes and opinions
      • Special modules in some years with questions about specific topics (e.g., environmental attitudes, mental health, etc)
    • 6,108 variables in full dataset; 193 semi-cleaned in the course dataset
  • You might choose to focus on a single year; or examine change over time and use year as a continuous IV

General Social Survey logo.

Add Health Waves IV & V (AH4 & AH5)

  • National Longitudinal Study of Adolescent to Adult Health (Add Health)
    • Panel survey tracking a U.S. cohort from middle/high school (Wave 1) into their late 30s/early 40s (Wave 5)
  • I have both Wave 4 and Wave 5 saved as separate datasets
    • Mean age = 28 in Wave 4; mean age = 37 in Wave 5
  • Survey focuses mostly on health and health behaviors—but also has many other variables, including labor market outcomes
    • 922 variables in full dataset; 128 (Wave 4) and 168 (Wave 5) semi-cleaned in course dataset
  • See the full questionnaire here; let me know if there is a variable you want me to add to the course dataset—I can do this quickly and easily

Add Health logo: The National Longitudinal Study of Adolescent to Adult Health.

American National Election Study 2020

  • Political opinion survey taken both before and shortly after the 2020 U.S. presidential election (Biden vs Trump)
  • Includes a range of political opinions, behaviors, and voting intentions
  • 1,771 variables in raw data; 46 variables in semi-cleaned dataset
    • See the full questionnaire here; I am happy to add more variables to the cleaned dataset if you send me the variable names

American National Election Studies logo.

Health and Retirement Study 2020 (HRS)

  • Longitudinal survey of older adults
  • Primarily focused on aging and health but with other miscellaneous measures as well
    • Excellent representation of older adults; allows for examination into much older ages than most surveys
  • 179 variables in course dataset

Health and Retirement Study logo.

World Values Survey 7 (WVS)

  • Cross-sectional survey conducted simultaneously across 79 countries (1,000+ respondents per country)
    • Very diverse representation of countries
    • WVS 7 conducted in 2017–2020
  • Mostly attitudinal questions about social, political, religious, and economic issues
  • My advice: keep only two countries of interest for class assignments
    • Use the country indicator as your binary IV for assignments

World Values Survey logo.

Creating scales for continuous variables

  • It can be challenging to find continuous variables in health and social science datasets (that is one reason you need this class!)
    • Scales and indexes are some of the most common forms of continuous variables
    • Find a few binary or ordinal variables that you think are measuring a single underlying construct and propose in Assignment 2 to combine them into a scale or index
      • I will help guide you as to whether this will work or not
  • There are lots of sophisticated ways to create scales; for the purpose of this class, you can just add the variables* together into a “summated scale”
    • To learn the more sophisticated approaches, take a class on Latent Variable Modeling
    • In the course datasets I provide, many scales have already been created for you. These variable names usually end in SS (“summated scale”)

*If all items are measured in the same way, often useful to divide by total # of items to retain interpretation

Interpreting scales

  • A difficulty with scales is they often have no natural metric so can be awkward to interpret
  • I suggest interpreting the mean value as “average” on that scale, ± 1 SD “somewhat” more or less on that construct, and ± 2 SDs as “very” indicative of that construct (or lack of it)
    • It can be very useful to label these values on graphs, to use them as places to make predictions, to aid your interpretations, etc.
  • E.g., For a depression scale:

Depression Scale

-2 SDs -1 SD Mean +1 SD +2 SDs
“very low depressive symptoms” “somewhat less depressed than average” “average” “somewhat more depressed than average” “very high depressive symptoms”

Recoding variables into a natural metric

  • Another strategy for making continuous variables is to recode ordinal variables where the response options have a natural metric (but were not coded that way)
    • E.g., Recode religious attendance variable into days per month (e.g., assign “2-3 times per month” a value of 2.5. Assign “every week” a value of 4. Etc.)
use "https://tdmize.github.io/data/data/cda_gss", clear
(cda_gss.dta |  GSS 1972-2021 CDA - Categorical Data Analysis | date created 202
> 3)
fre attend
attend -- how often r attends religious services
------------------------------------------------------------------------------
                                 |      Freq.    Percent      Valid       Cum.
---------------------------------+--------------------------------------------
Valid   0  never                 |      12706      18.46      18.64      18.64
        1  less than once a year |       5409       7.86       7.93      26.57
        2  about once or twice a |       8951      13.00      13.13      39.70
           year                  |                                            
        3  several times a year  |       8406      12.21      12.33      52.03
        4  about once a month    |       4674       6.79       6.86      58.88
        5  2-3 times a month     |       5913       8.59       8.67      67.55
        6  nearly every week     |       3842       5.58       5.64      73.19
        7  every week            |      13218      19.20      19.39      92.58
        8  several times a week  |       5062       7.35       7.42     100.00
        Total                    |      68181      99.03     100.00           
Missing .d                       |        595       0.86                      
        .i                       |         40       0.06                      
        .n                       |          3       0.00                      
        .s                       |         27       0.04                      
        Total                    |        665       0.97                      
Total                            |      68846     100.00                      
------------------------------------------------------------------------------
library(haven)           # import Stata data and labels
library(sjmisc)          # frequency tables

gss <- read_dta("https://tdmize.github.io/data/data/cda_gss.dta")

frq(gss, attend)
how often r attends religious services (attend) <numeric> 
# total N=68846 valid N=68181 mean=3.71 sd=2.74

Value |                      Label |     N | Raw % | Valid % | Cum. %
---------------------------------------------------------------------
    0 |                      never | 12706 | 18.46 |   18.64 |  18.64
    1 |      less than once a year |  5409 |  7.86 |    7.93 |  26.57
    2 | about once or twice a year |  8951 | 13.00 |   13.13 |  39.70
    3 |       several times a year |  8406 | 12.21 |   12.33 |  52.03
    4 |         about once a month |  4674 |  6.79 |    6.86 |  58.88
    5 |          2-3 times a month |  5913 |  8.59 |    8.67 |  67.55
    6 |          nearly every week |  3842 |  5.58 |    5.64 |  73.19
    7 |                 every week | 13218 | 19.20 |   19.39 |  92.58
    8 |       several times a week |  5062 |  7.35 |    7.42 | 100.00
 <NA> |                       <NA> |   665 |  0.97 |    <NA> |   <NA>
Back to top