nice_agreement_table.Rd
This function performs an agreement analysis including intra-class correlation coefficients, group-related variance, and related diagnostics for items with a nominal or ordinal scale. The function outputs a data.frame or a HTML table giving the results.
nice_agreement_table(
data,
vars = names(data),
grouping,
rv,
crit = 0.7,
min_group_size = 0,
auto_labels = TRUE,
labels = NULL,
n_sim = 10000
)
A data-frame
Vector of character strings with names of variables to be analyzed.
Grouping variable. Either as a character string or a vector.
Number of response options for calculating random variance.
Critical agreement level.
Minimal group size. Smaller groups are excluded.
If TRUE, variable names are taken from a label attribute.
Character vector with new variable labels.
Number of simulations for the agreement analyses.
A Data-frame
vars <- c("Norm_Pop_academic", "Norm_Pop_conform", "Norm_Pop_sporty",
"Norm_Pop_cool_clothes", "Norm_Pop_helpful", "Norm_Unpop_academic",
"Norm_Unpop_nonconform", "Norm_Unpop_sporty", "Norm_Unpop_cool_clothes",
"Norm_Unpop_language", "Norm_LM_academic", "Norm_LM_conform",
"Norm_LM_sporty", "Norm_LM_cool_clothes", "Norm_LM_helpful",
"Norm_LL_academic", "Norm_LL_nonconform", "Norm_LL_sporty", "Norm_LL_cool_clothes",
"Norm_LL_language")
nice_agreement_table(
data = wmisc:::ex_agreement,
vars = vars,
grouping = "id_class_teacher",
rv = 4,
crit = 0.6,
n_sim = 100)
Table
Within group agreement analysis
Label
Ratings
Classes
Min
Max
Min
Max
Mean
≥ 0.6
CI
> CI
ICC
L icc
Note. Rwg is the within group agreement. CI is the upper bound of a 95% inteval of rwg. ICC(1) is the intra-class correlation (i.e. the amount of individual-level variance that can be explained by group membership). L is the likelihood ratio. ICC(2) is the reliability of the group means. Groups with less than 0 cases were removed from the analysis.