usetdm
Stata command to download example data for classes, workshops, and replication files
usetdm loads datasets from the web to recreate the examples from various classes and workshops, and the replication files from various projects. The datasets live in the data/ folder of the tdmize/data GitHub repository; usetdm saves typing the address. Every dataset on this page can also be opened without installing anything:
use "https://tdmize.github.io/data/data/gss", clearInstallation
net install usetdm, from("https://tdmize.github.io/data") replaceUse
usetdm dataname [, clear]Option clear must be specified if another dataset is currently in memory.
usetdm gss, clearLoading dataset...
(gss.dta | GSS 1972 - 2016 Data | DMV Workshop)
describe, shortContains data from https://tdmize.github.io/data/data/gss.dta
Observations: 62,466 gss.dta | GSS 1972 - 2016 Data | DMV Workshop
Variables: 113 24 Mar 2018 14:28
Sorted by:
Available datasets
The table lists every dataset in the folder as of September 2026, with the number of observations and variables. The folder itself is at tdmize.github.io/data/data, and the class and workshop materials that use these files are on the Teaching pages. Datasets marked “si” are prepared for the Methodology Center’s Summer Institute on Longitudinal Data Analysis; “CDA” is for my Categorical Data Analysis.
| Dataset | Obs. | Vars. | Description |
|---|---|---|---|
addhealth4 |
4,307 | 79 | Add Health Wave IV (DMV) |
addhealth4_mcar |
4,307 | 11 | Add Health Wave IV, missing-data workshop extract (MCAR example) |
addhealth4_mimpute |
4,307 | 37 | Add Health Wave IV, multiply imputed data |
ah1_context |
6,504 | 8 | Add Health Wave I, contextual variables (MCAP SI) |
ah4_cme |
4,307 | 12 | Add Health Wave IV, Mize, Doan & Long (2019) examples |
ah4_hotdeck |
22,842 | 20 | Add Health Wave IV, missing-data workshop extract (hot-deck example) |
ah_si |
29,467 | 79 | Add Health Waves I-VI, cleaned for the MCAP SI |
ah_si_2025 |
25,530 | 61 | Add Health Waves I-V, cleaned for the 2025 MCAP SI |
ah_si_2026 |
29,467 | 79 | Add Health Waves I-VI, cleaned for the 2026 MCAP SI |
anscombe |
11 | 6 | Anscombe’s quartet |
cda_ah4 |
5,114 | 131 | Add Health Wave IV (CDA) |
cda_ah5 |
4,196 | 168 | Add Health Wave V (CDA) |
cda_anes |
8,280 | 46 | American National Election Study 2020, pre-election (CDA) |
cda_gss |
68,846 | 193 | General Social Survey 1972-2021 (CDA) |
cda_gss22 |
72,390 | 192 | General Social Survey 1972-2022 (CDA) |
cda_hrs |
15,723 | 179 | Health and Retirement Study 2020 (CDA) |
cda_pew |
2,583 | 36 | Pew politics survey, October 2016 (CDA) |
cda_scs2 |
555 | 63 | Stereotype content of gender and sexual orientation, Study 2 (CDA) |
cda_wvs6 |
89,565 | 47 | World Values Survey wave 6, 2010-2014 (CDA) |
cda_wvs7 |
137,669 | 102 | World Values Survey wave 7 with the extra EVS5 countries (CDA) |
cgr |
9,691 | 60 | Intersectionality and stereotype content, Prolific sample |
county_albers |
58,948 | 5 | US county map coordinates, Albers projection (DMV) |
county_albers_conus |
55,203 | 5 | US county map coordinates, Albers projection, contiguous states (DMV) |
county_coor |
59,876 | 3 | US county map coordinates (DMV) |
county_mercator |
58,948 | 5 | US county map coordinates, Mercator projection (DMV) |
covid_cases_europe |
34,695 | 4 | COVID-19 cases in Europe, 2020-2023 |
covid_US_counties |
3,144 | 14 | COVID-19 deaths, vaccinations, and the 2020 presidential vote by US county |
dmv_intsim01 |
2,000 | 10 | Simulated interaction data 1 (DMV) |
dmv_intsim02 |
2,000 | 10 | Simulated interaction data 2 (DMV) |
doan_ASR_2014 |
1,073 | 161 | Doan (2014, ASR), views of gay, lesbian, and heterosexual couples (TESS) |
doan_love_SF |
504 | 177 | TESS analysis data, Doan and coauthors |
feechanges |
27 | 2 | Fee changes, a small example dataset |
gss |
62,466 | 113 | General Social Survey 1972-2016 (DMV) |
gss7216_inm |
62,277 | 40 | General Social Survey 1972-2016, interactions in nonlinear models |
gss_cme |
62,466 | 29 | General Social Survey 1972-2016, weighted; Mize, Doan & Long (2019) examples |
hrs06 |
17,537 | 46 | Health and Retirement Study 2006 (DMV) |
hrs_si |
296,197 | 181 | Health and Retirement Study 1992-2022, cleaned for the MCAP SI |
hrs_si_2025 |
280,343 | 42 | Health and Retirement Study, cleaned for the 2025 MCAP SI |
lvm_ah4 |
5,114 | 120 | Add Health Wave IV (LVM) |
lvm_dis2 |
2,190 | 105 | Hiring study 2 (mTurk) with scales (LVM) |
lvm_gss |
62,466 | 107 | General Social Survey 1972-2016 (LVM) |
lvm_ma1 |
115 | 90 | Mize (2019), doing gender by criticizing leaders, Study 1 |
lvm_scs2 |
555 | 70 | Mize & Manago (2018, Social Currents), stereotype content of sexual orientation |
lvm_wvs6 |
89,565 | 46 | World Values Survey wave 6, 2010-2014 (LVM) |
midus_si |
15,365 | 7 | MIDUS study, cleaned for the MCAP SI |
midus_si_2025 |
15,365 | 7 | MIDUS study, cleaned for the 2025 MCAP SI |
mls_gss |
3,920 | 417 | General Social Survey extract, matching/labeling/stigma project with multiple imputation |
MORs-gss |
12,239 | 12 | General Social Survey extract |
nli_ah4 |
4,307 | 18 | Add Health Wave IV (NLI) |
nli_gss |
62,277 | 41 | General Social Survey 1972-2016 (NLI) |
pew16 |
1,604 | 39 | Pew 2016 pre-election survey (DMV) |
plp-1_2-merged |
3,343 | 213 | Parental leave policies experiment, Prolific studies 1 and 2 |
pmh_tess |
1,989 | 38 | Precarious male heterosexuality, TESS study |
publish |
308 | 33 | Long’s biochemist publication data (some variables artificially constructed) |
regjob3 |
408 | 9 | Long’s data on the academic jobs of biochemists |
scireview3 |
264 | 34 | Long’s biochemist data, updated for the CDA Stata guide |
scs1 |
461 | 66 | Bisexual stereotypes study 1, with scales |
scs1_b |
461 | 60 | Bisexual stereotypes study 1, with scales (variant) |
scs2 |
555 | 70 | Bisexual stereotypes study 2, with scales |
smi_gss |
13,064 | 75 | Mize (2016, ASR), GSS data on sexual behavior and wages |
state_albers |
83,895 | 3 | US state map coordinates, Albers projection (DMV) |
state_coor |
83,895 | 3 | US state map coordinates (DMV) |
state_mercator |
83,895 | 3 | US state map coordinates, Mercator projection (DMV) |
tenure |
2,797 | 23 | Long’s data on tenure for scientists (DMV) |
uscounty |
3,144 | 43 | US county data, presidential elections 2012-2016 (DMV) |
usstates |
51 | 39 | US state data, presidential elections 2012-2016 (DMV) |
vote2008 |
3,141 | 77 | US county characteristics, 2000-2007 |
world |
177 | 73 | World map data (DMV) |
worldcoor |
10,943 | 3 | World map coordinates (DMV) |
worldcoor_merc |
10,943 | 3 | World map coordinates, Mercator projection (DMV) |