All tutorials & labs

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

IDVisit dayEvent
A10
A31
B10
C11
D1Unknown

Rerun file

IDVisit dayEvent
D1Unknown
C11
B10
A31
A10

Which assumption would you question in this exercise? Bring your question to the Learning Club