Course · Reproducibility · 37 pages

Reproducible Statistical Workflows

Build a statistical workflow that someone else can rerun and audit. Track code with Git, record which data snapshot and software environment you used, and trace a result back to the decisions that produced it.

No account needed to read online.

What it covers

  • Version control for everyday statistical work
  • Traceable data wrangling and documented data snapshots
  • Analysis and modeling that can be reviewed and rerun
  • Diagnose drifting results and undo changes safely
  • Rebuild tables and figures from a recorded environment

English edition · 37 slides

Cover of Reproducible Statistical Workflows

Can a colleague reproduce your result?

Estimate event risk at the earliest recorded visit among people with a known outcome. The archived run found one event among three people. Choose a change and predict what a rerun will show.

Reveal the answer and interpretation

Trace A’s visits. Day 1 has no event and day 3 has an event. Reversing the file changes which visit appears first. Sort each person’s visits by day and select the earliest. Both files then give 1 event among 3 known outcomes.

The archive reports 1/3. The rerun reports 2/3.

Both scripts keep the first row they encounter for each person with a known outcome. The study asks for the earliest visit. Inspect the two files in their supplied order.

Archived file

IDVisit dayEvent
A10
A31
B10
C11
D1Unknown

Rerun file

IDVisit dayEvent
D1Unknown
C11
B10
A31
A10

Read online

Reproducible Statistical Workflows

PDF copy available by request
Page 1 of 37 · Loading…
Reproducible Statistical Workflows, page 1 of 37. Use Text view for a text alternative.

Your last page is remembered in this browser. Use zoom and swipe within the page to inspect equations.

Request a PDF copy

Request access

Reading online is free. You can request a PDF copy or companion files here. StatHarbor Analytics reviews requests privately.

Sign in with ChatGPT

Discussion

Questions, clarifications and applications of this resource.

Loading discussion…