diagnosis | R Documentation |
Psychiatric diagnoses of 30 patients provided by 6 raters. Data were used by Fleiss (1971) to illustrate the computation of Kappa for multiple raters.
diagnosis
A tibble with 30 observations (psychiatric diagnoses with levels Depression, Personality Disorder, Schizophrenia, Neurosis, Other) on 6 variables representing different raters and one variable for subject ID.
Subject ID
a factor including the diagnoses of rater 1 (levels see above)
a factor including the diagnoses of rater 2 (levels see above)
a factor including the diagnoses of rater 3 (levels see above)
a factor including the diagnoses of rater 4 (levels see above)
a factor including the diagnoses of rater 5 (levels see above)
a factor including the diagnoses of rater 6 (levels see above)
Fleiss, J.L. (1971). Measuring nominal scale agreement among many raters. Psychological Bulletin, 76, 378-382.
Fleiss, J.L. (1971). Measuring nominal scale agreement among many raters. Psychological Bulletin, 76, 378-382.
diagnosis
library(dplyr)
library(tidyr)
# Table 1, Fleiss (1971): Diagnoses on 30 subjects by 6 raters per subject
diagnosis %>%
tidyr::gather(.,
key = "rater",
value = "rating",
dplyr::starts_with("rater")) %>%
with(., table(subject, rating))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.