Description Usage Arguments Value See Also Examples
View source: R/calculate_agreement.R
Calculate agreement summaries and Krippendorff's alpha for all reviewer pairs. Krippendorff's alpha can be calculated for nominal, ordinal, interval, and ratio scale variables.
1 | calculate_agreement(df, decision_col = "decision", kr_method = "nominal")
|
df |
a data frame that contains the screened articles, and having a name<chr> column |
decision_col |
variable name <chr> that defines the decision column (0/1) |
kr_method |
The scale of the decision variable. Can be nominal (default), ordinal, interval, or ratio |
A data frame containing agreement summaries, and the Krippendorff's alpha statistic for all pairs of screeners. invalid_decision<int> is the total number of decisions that are not 1 or 0.
kripp.alpha
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(dplyr)
team_df <- tibble(name = c("Tom", "Jerry", "Rose"),
screening_effort = c(.5, .4, .1))
set.seed(1)
df <-
workaholism_pubmed %>%
make_id(identifier = c("doi", "pmid")) %>%
assign_articles(team_df = team_df,
reviewers = 2,
effort_col = "screening_effort") %>%
# Generate fake screening data
mutate(decision = sample(c(0:1, NA_integer_),
prob = c(.6,.3, .1),
size = nrow(.),
replace = TRUE))
calculate_agreement(df, decision_col = "decision")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.