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.
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.
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.
Variable dictionary
| Variable | Type | Content |
|---|---|---|
| id | identifier | patient number |
| sex | qualitative nominal | F / M |
| age | quantitative continuous | years |
| height_cm | quantitative continuous | centimetres |
| weight_kg | quantitative continuous | kilograms |
| bmi | quantitative continuous | kg/m², computed |
| smoking | qualitative nominal | Yes / No — current smoker |
| physical_activity | qualitative ordinal | Low < Moderate < High |
| sbp_mmhg | quantitative continuous | systolic blood pressure, mmHg |
| fasting_glucose_g_l | quantitative continuous | fasting blood glucose, g/L |
| hypertension | qualitative nominal | Yes 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
Find the confidence intervals of slide 2 in jamovi, recode a continuous variable, and build the Table 1 of the cohort by sex.
- 1
Estimate the mean age, with its confidence interval
- Exploration → Descriptives:
agein 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].
- Exploration → Descriptives:
- 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).
- Analyses → Frequencies → 2 Outcomes — Binomial test. Variable:
- 3
Recode BMI into classes
- Data tab → select
bmi→ Transform. Name the new variablebmi_class, then using transform → Create new transform: add the conditionsif $source < 18.5 use "Underweight",if $source < 25 use "Normal",if $source < 30 use "Overweight",else use "Obesity". - Then Descriptives on
bmi_classwith Frequency tables and a Bar plot.
Expected result: Underweight 15 (7.5%), Normal 76 (38.0%), Overweight 78 (39.0%), Obesity 31 (15.5%).
- Data tab → select
- 4
Build the Table 1 by sex
- Descriptives:
ageandsbp_mmhgin Variables,sexin Split by; Mean and Std. deviation. - Then
smokingandhypertensionin Variables,sexin 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.
- Descriptives: