| kendall_w | R Documentation |
Computes Kendall's coefficient of concordance (W) for complete, untied ranking data.
kendall_w(data, respondent = NULL)
data |
A data.frame, matrix, CSV file path, or Excel file path containing ranking data. |
respondent |
Optional respondent ID column name or column position to exclude before analysis. |
Each row must represent one respondent and each column one factor. Each respondent must assign every rank from 1 to the number of factors exactly once. Tied ranks are not supported.
An object of class "kendall_w", which is a list containing:
Kendall's coefficient of concordance (W), ranging from 0 to 1, where larger values indicate stronger agreement among respondents.
The chi-square statistic used to test the statistical significance of the concordance.
Degrees of freedom for the chi-square test.
The p-value associated with the chi-square test.
The number of respondents included in the analysis.
The number of ranked factors.
A named numeric vector containing the sum of ranks assigned to each factor across respondents.
The matched function call.
data(garrett_example)
kw <- kendall_w(garrett_example,respondent = "Respondent")
kw
summary(kw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.