Back to the programme
Session 3 · 2 h

Estimation; organisation and presentation of data

Programme objectives:EstimationOrganization and presentation of data

Content: The 95% confidence interval · Reading a confidence interval · One row per patient, one column per variable · Recoding, the “Table 1” and the right graph.

Session 3 — slide 1 / 7

The 95% confidence interval

  • The point estimate (x̄ = 48.2 years) is almost certainly wrong… by a little. The confidence interval says by how much.
  • For a mean: 95% CI ≈ x̄ ± 1.96 × SD / √n. For a proportion: p̂ ± 1.96 × √(p̂ (1 − p̂) / n).
  • Reading: if the study were repeated 100 times, 95 intervals out of 100 would contain the true value.
  • The interval narrows when n increases or when the spread decreases.
Twenty-five horizontal confidence intervals stacked up, most crossing the vertical line of the true mean, one or two in orange missing it.
25 samples of 30 patients: almost every interval contains the true value.
Swipe to turn the page

Data to download

cohort_efm1_2026.csv

200 outpatients: age, measurements, smoking, physical activity, blood pressure, blood glucose. Simulated data for the course. 200 rows, 11 variables.

Download the CSV
Variable dictionary
VariableTypeContent
ididentifierpatient number
sexqualitative nominalF / M
agequantitative continuousyears
height_cmquantitative continuouscentimetres
weight_kgquantitative continuouskilograms
bmiquantitative continuouskg/m², computed
smokingqualitative nominalYes / No — current smoker
physical_activityqualitative ordinalLow < Moderate < High
sbp_mmhgquantitative continuoussystolic blood pressure, mmHg
fasting_glucose_g_lquantitative continuousfasting blood glucose, g/L
hypertensionqualitative nominalYes if SBP ≥ 140 mmHg

Format: comma separator, decimal point, UTF-8 encoding — jamovi opens it with no settings. In Excel, use Data → From Text/CSV if the columns are not split.

Figures of the session (3) — download them for your own notes
jamovi workshop — session 3

Find the confidence intervals of slide 2 in jamovi, recode a continuous variable, and build the Table 1 of the cohort by sex.

  1. 1

    Estimate the mean age, with its confidence interval

    • Exploration → Descriptives: age in Variables. In Statistics, tick Mean, Std. deviation and the Confidence interval of the mean.

    Expected result: Mean 48.2, standard deviation 11.5, 95% CI [46.6, 49.8].

  2. 2

    Estimate the proportion of smokers

    • Analyses → Frequencies → 2 Outcomes — Binomial test. Variable: smoking. Tick Confidence intervals.

    Expected result: Yes: 46 / 200 = 23.0%, 95% CI [17.4, 29.5]% (the p-value shown tests 50%: ignore it here).

  3. 3

    Recode BMI into classes

    • Data tab → select bmi → Transform. Name the new variable bmi_class, then using transform → Create new transform: add the conditions if $source < 18.5 use "Underweight", if $source < 25 use "Normal", if $source < 30 use "Overweight", else use "Obesity".
    • Then Descriptives on bmi_class with Frequency tables and a Bar plot.

    Expected result: Underweight 15 (7.5%), Normal 76 (38.0%), Overweight 78 (39.0%), Obesity 31 (15.5%).

  4. 4

    Build the Table 1 by sex

    • Descriptives: age and sbp_mmhg in Variables, sex in Split by; Mean and Std. deviation.
    • Then smoking and hypertension in Variables, sex in Split by, Frequency tables ticked.

    Expected result: Age: women 49.5 ± 10.8, men 46.6 ± 12.1 years. SBP: women 119.3 ± 12.8, men 115.8 ± 14.5 mmHg. Smokers: 17 (15.9%) women, 29 (31.2%) men.