A collection of 23 curated data sets for teaching classical statistical inference in R. Each data set is paired with the analysis it is designed to teach – one data set per test – and is used across the Datanovia biostatistics lessons (https://www.datanovia.com).

Comparing means

One-sample t-testmice
Paired-samples t-testmice2
Two-samples (independent) t-testgenderweight

Analysis of variance (ANOVA)

Two-way ANOVAjobsatisfaction
Three-way ANOVAheadache, heartattack
One-way repeated measures ANOVAselfesteem
Two-way repeated measures ANOVAselfesteem2
Three-way repeated measures ANOVAweightloss
Two-way mixed ANOVAanxiety, depression
Three-way mixed ANOVAperformance
Two-way ANCOVAstress

Categorical data and proportions

Chi-square test of independenceproperties, housetasks.raw
Categorical descriptive statisticstitanic.raw
McNemar's testantismoking
Cochran's Q testtaskachievment
Cochran-Armitage trend testrenalstone

Regression

Linear regressionmarketing
Poisson regression (count data)infections
Logistic regression (real, messy clinical data)heartdisease

Time series

Time seriesAirPassengersDf

Author

Maintainer: Alboukadel Kassambara alboukadel.kassambara@gmail.com