| garrett_example | R Documentation |
#Example Dataset for Garrett Ranking
garrett_example
A data frame with 50 rows and 23 columns:
The name or serial number identifying each respondent.
Rank assigned to constraint 1.
Rank assigned to constraint 2.
Rank assigned to constraint 3.
Rank assigned to constraint 4.
Rank assigned to constraint 5.
Rank assigned to constraint 6.
Rank assigned to constraint 7.
Rank assigned to constraint 8.
Rank assigned to constraint 9.
Rank assigned to constraint 10.
Rank assigned to constraint 11.
Rank assigned to constraint 12.
Rank assigned to constraint 13.
Rank assigned to constraint 14.
Rank assigned to constraint 15.
Rank assigned to constraint 16.
Rank assigned to constraint 17.
Rank assigned to constraint 18.
Rank assigned to constraint 19.
Rank assigned to constraint 20.
Rank assigned to constraint 21.
Rank assigned to constraint 22.
The first column contains the respondent's name or serial number. The remaining 22 columns (C1 to C22) contain the ranks assigned by each respondent to the corresponding constraints. There are 50 respondents in the dataset. No tied ranks are present in the dataset.
The dataset contains ranking responses from 50 respondents for 22 constraints.
data(garrett_example)
#Run Garrett ranking analysis
result <- garrett_rank(garrett_example,respondent = "Respondent")
summary(result)
result$ranking
result$frequency
result$weighted_scores
#Select the plot type
plot(result, type = "bar")
plot(result, type = "lollipop")
plot(result, type = "dot")
plot(result, type = "line")
plot(result, type = "heatmap")
plot(result, type = "cluster")
plot(result,type="contribution")
plot(result, type = "cluster", k = 3)
plot(result,type = "cluster",scale = "row",show_numbers = TRUE)
#Run Kendall's Coefficient of Concordance
kw<-kendall_w(garrett_example,respondent = "Respondent")
summary(kw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.