Retour à la bibliothèque
Cours · Méthodes appliquées · 8 sections

De l’analyse exploratoire au choix du modèle

Suivre huit personnes, examiner les mesures manquantes et choisir un modèle adapté à la question. Cours en anglais.

La lecture en ligne ne nécessite pas de compte.

What does a falling average tell us?

Eight people at two clinics have a scheduled symptom score at enrolment, month 1 and month 2. Higher scores indicate worse symptoms. A colleague sees the monthly average fall and concludes that the full cohort improved. Your job is to determine how much that comparison establishes. All records in this exercise are synthetic.

By the end, you will be able to define the unit and denominator, distinguish changes within people from changes in who was measured, and choose a model whose output answers your question.

Read the records before computing the mean

One row in this display is one participant. In an analysis table, one row could instead represent one person at one scheduled visit. A dash means a scheduled measurement is missing. It cannot be interpreted as a score of zero.

PersonClinicEnrolmentMonth 1Month 2
AEast432
BEast654
CEast665
DEast87—
EWest543
FWest765
GWest776
HWest98—
How many independent people and scheduled measurements does this table describe?

Eight people and 24 scheduled scores. Only 22 scores were recorded. Someone measured three times still counts as one person.

Audit the structure and measurement process

Use person and scheduled month together as the candidate key. Investigate duplicate rows before averaging them: a correction, a second assessment and a duplicated import have different meanings. Verify that both clinics used the same instrument and direction of scoring. Check actual visit dates against the permitted windows.

Report the number observed alongside every summary. At month 1, the two people who subsequently miss month 2 have scores of 7 and 8. That observation makes dependence on prior severity plausible. The table alone cannot reveal why either visit was missed.

Separate change from a changing denominator

Across everyone observed at each visit, the mean falls from 52/8 = 6.50 at enrolment to 25/6 = 4.17 at month 2. The apparent decline is 2.33 points. Try comparing the same people at both times.

What is the mean change among the six people who completed month 2?

Their baseline scores total 35, and their final scores total 25. The paired mean change is (25 − 35)/6 = −1.67 points. The larger 2.33-point decline uses a baseline population that also includes the two people who started at 8 and 9.

Choose a display that preserves the history

Draw one line per person with scheduled month horizontally and score vertically. End a line at the last observed score. Add the number measured at each month. This reveals something the average conceals: the two people with the highest baseline scores have no final value.

Colour or facet by clinic as an exploratory check. Each clinic enrolled only four people. An apparent clinic difference could reflect baseline case mix or chance. This sample supports a description of these histories; it offers little precision for a clinic comparison.

Match the model to the scientific question

Use the same records to ask different questions. First write the quantity you want to report. Then choose an outcome distribution, time function and way to account for dependence.

QuestionAnalysis to considerQuantity to report
How did completers change?Paired differencesMean within-person change among six completers
How does the cohort mean vary over time?Mixed model with visit indicators; address missingnessModel-based mean at each scheduled visit
How much do individual slopes vary?Random-intercept and random-slope modelBetween-person slope SD, with uncertainty
Can baseline data predict a later score?Prediction model validated on held-out peoplePrediction error for a new person
Would ordinary regression treating 22 rows as independent give reliable uncertainty?

The same person contributes several scores. Account for within-person dependence. Eight people offer little information for complex random-effects structures or a credible independent prediction test.

Write the model and challenge its assumptions

For a larger study with this design, one candidate is score = baseline mean + month-1 effect + month-2 effect + person-specific intercept + residual error. Visit indicators allow the two changes to differ. A random intercept captures persistent differences in starting levels.

Inspect fitted versus observed means, individual residual paths and residual spread by visit. Ask whether people improve at different rates, whether the score approaches a floor, and whether attendance is related to observed severity. Likelihood-based inference with partial histories depends on the outcome model and an ignorable missingness mechanism.

Stress-test the conclusion and report it

Suppose the two missing month-2 scores were 8 and 9. Under that scenario the full-cohort month-2 mean would be (25 + 8 + 9)/8 = 5.25, a decline of 1.25 points. Treat these as assumed values and repeat the calculation over scientifically plausible alternatives.

What conclusion can you defend from the observed data alone?

The six completers improved by an average of 1.67 points. Two people with high starting scores lack a final measurement, so the full-cohort mean change depends on their unobserved outcomes. The data describe change over time; a treatment effect would require a defined intervention, comparison and additional assumptions.

baseline <- c(4, 6, 6, 8, 5, 7, 7, 9)
month2 <- c(2, 4, 5, NA, 3, 5, 6, NA)
mean(month2 - baseline, na.rm = TRUE)  # paired change
filled <- replace(month2, is.na(month2), c(8, 9))
mean(filled - baseline)               # sensitivity scenario

Discussion

Questions, précisions et applications de cette ressource.

Chargement des commentaires…