Repeated measures nominal designs where 73 subjects are asked to perform 3 tasks. The outcome of each task is a dichotomous value, success or failure. Each row correspond to a participant (called "block" in the jargon). This a demo dataset for Cochran's Q test.
It is the data set used in the Datanovia tutorial “Cochran's Q Test in R: Compare Three or More Paired Proportions” (https://www.datanovia.com/learn/biostatistics/categorical/cochran-q-test-in-r).
data("taskachievment")A data frame with 73 rows and 4 columns (stored as a tibble).
participant identifier (1 to 73).
the outcome of task 1: 0 (failure) or 1 (success).
the outcome of task 2: 0 (failure) or 1 (success).
the outcome of task 3: 0 (failure) or 1 (success).
A simulated dataset for teaching Cochran's Q test.
Datanovia tutorial: Cochran's Q Test in R: Compare Three or More Paired Proportions.
data(taskachievment)
head(taskachievment)
#> # A tibble: 6 × 4
#> participant Task1 Task2 Task3
#> <fct> <dbl> <dbl> <dbl>
#> 1 1 0 0 1
#> 2 2 0 0 0
#> 3 3 1 1 1
#> 4 4 1 1 1
#> 5 5 0 0 1
#> 6 6 0 0 0
# Proportion of success for each task
colMeans(taskachievment[, c("Task1", "Task2", "Task3")])
#> Task1 Task2 Task3
#> 0.2602740 0.4383562 0.6164384