Data
Download once; everything then works offline.
Every dataset used in the course is here, so nothing depends on a website being up during class. Each session’s lab zip also contains the data that lab needs.
All course data, sessions 1–2
(zip). Unzip it and copy the files from its
data-raw folder into data/raw/ in your course
folder.
| File | Rows × columns | Used in | What it is |
|---|---|---|---|
auto.csv |
392 × 9 | S1, S2 | Cars from the 1970s–80s: mpg, cylinders, weight, origin (1 = US, 2 = Europe, 3 = Japan). The classic Auto MPG teaching dataset |
auto_messy.csv |
392 × 9 | S2 | A version of auto.csv for session 2 |
titanic.csv |
891 × 12 | S2 exercise | Titanic passengers: survival, class, sex, age, fare |
| Register lab data | per pair | S3 | Synthetic Swedish-style register files (persons, firms, years); one dataset per pair, downloads below |
Session 3 pair datasets. Pair 00 is the default data
the slides use, and it is already in s3_lab.zip: you need nothing else. Nobody hands
out pair numbers. For your own data, pick any number 01–30 yourself and
download that one zip (it holds one folder pair_NN; unzip
it inside s3_lab and set PAIR to match).
00 · 01 · 02 · 03 · 04 · 05 · 06 · 07 · 08 · 09 · 10 · 11 · 12 · 13 · 14 · 15 · 16 · 17 · 18 · 19 · 20 · 21 · 22 · 23 · 24 · 25 · 26 · 27 · 28 · 29 · 30
The register data are synthetic: generated by a script, with invented values and publicly documented variable names. No real person or firm is in them.