Reproduce a result
Trace a change in a reported risk to the data or an analysis decision, then choose a correction that reproduces the original calculation.
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
| ID | Visit day | Event |
|---|---|---|
| A | 1 | 0 |
| A | 3 | 1 |
| B | 1 | 0 |
| C | 1 | 1 |
| D | 1 | Unknown |
Rerun file
| ID | Visit day | Event |
|---|---|---|
| D | 1 | Unknown |
| C | 1 | 1 |
| B | 1 | 0 |
| A | 3 | 1 |
| A | 1 | 0 |
Which assumption would you question in this exercise? Bring your question to the Learning Club