Dear @jrkrideau
Thank you very much for your response and time to guide me. I think I have loaded the data, although in the dput(scores) output appears some letters L which is not part of the data.. (see below please). The columns in my excel file are in order : rater, text, question, scores, z_scores, overall_scorescale. Following your guide I get:
Just do dput(mydata) where mydata is your data. Copy the output and paste it here between
> dput(head(scores, 100))
structure(list(rater = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), levels = c("1",
"2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"), class = "factor"),
text = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L,
2L, 2L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 5L,
5L, 5L, 5L, 5L, 5L, 6L, 6L, 6L, 6L, 6L, 6L, 7L, 7L, 7L, 7L,
7L, 7L, 8L, 8L, 8L, 8L, 8L, 8L, 9L, 9L, 9L, 9L, 9L, 9L, 10L,
10L, 10L, 10L, 10L, 10L, 11L, 11L, 11L, 11L, 11L, 11L, 12L,
12L, 12L, 12L, 12L, 12L, 13L, 13L, 13L, 13L, 13L, 13L, 14L,
14L, 14L, 14L, 14L, 14L, 15L, 15L, 15L, 15L, 15L, 15L, 16L,
16L, 16L, 16L, 16L, 16L, 17L, 17L, 17L, 17L), levels = c("1",
"2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12",
"13", "14", "15", "16", "17", "18", "19"), class = "factor"),
question = structure(c(1L, 2L, 3L, 4L, 5L, 6L, 1L, 2L, 3L,
4L, 5L, 6L, 1L, 2L, 3L, 4L, 5L, 6L, 1L, 2L, 3L, 4L, 5L, 6L,
1L, 2L, 3L, 4L, 5L, 6L, 1L, 2L, 3L, 4L, 5L, 6L, 1L, 2L, 3L,
4L, 5L, 6L, 1L, 2L, 3L, 4L, 5L, 6L, 1L, 2L, 3L, 4L, 5L, 6L,
1L, 2L, 3L, 4L, 5L, 6L, 1L, 2L, 3L, 4L, 5L, 6L, 1L, 2L, 3L,
4L, 5L, 6L, 1L, 2L, 3L, 4L, 5L, 6L, 1L, 2L, 3L, 4L, 5L, 6L,
1L, 2L, 3L, 4L, 5L, 6L, 1L, 2L, 3L, 4L, 5L, 6L, 1L, 2L, 3L,
4L), levels = c("1", "2", "3", "4", "5", "6"), class = "factor"),
scores = c(8.4, 2.3, 8.4, 8.4, 2.6, 8.4, 8.3, 8.3, 8.3, 8.3,
8.3, 8.3, 5.5, 1.8, 5.4, 5.4, 1.2, 5.5, 5.1, 1.1, 3.4, 5.1,
0.9, 3.5, 4.6, 1.3, 5.6, 4.5, 0.7, 5.6, 7, 6.2, 6.2, 7.2,
6.2, 6.2, 8, 8, 8, 8.1, 8.1, 8.2, 7.8, 7.8, 7.9, 7.7, 7.7,
7.7, 7.6, 7.6, 5.2, 7.8, 7.8, 5.2, 7, 5.6, 6.7, 6.7, 5.5,
6.4, 7.2, 2.6, 7.3, 7.4, 2.2, 7.5, 7.9, 2.7, 5.9, 8, 2.6,
6, 4.9, 2.9, 4.9, 4.9, 2.8, 5, 5.8, 2.6, 5.9, 5.9, 2.5, 5.9,
8.8, 8.8, 8.8, 8.8, 8.8, 8.9, 5.9, 3.2, 6.4, 6, 3.1, 6, 8.2,
7.4, 8.3, 8.6), z_score = c(0.963444776230018, -1.81309686235413,
0.963444776230018, 0.963444776230018, -1.67654563422704,
0.963444776230018, 0.917927700187655, 0.917927700187655,
0.917927700187655, 0.917927700187655, 0.917927700187655,
0.917927700187655, -0.356550428998511, -2.04068224256594,
-0.402067505040874, -0.402067505040874, -2.31378469882012,
-0.356550428998511, -0.538618733167963, -2.35930177486249,
-1.31240902588813, -0.538618733167963, -2.45033592694721,
-1.26689194984577, -0.766204113379778, -2.26826762277776,
-0.311033352956148, -0.811721189422141, -2.54137007903194,
-0.311033352956148, 0.326205711636935, -0.0379308967019693,
-0.0379308967019693, 0.417239863721661, -0.0379308967019693,
-0.0379308967019693, 0.781376472060566, 0.781376472060566,
0.781376472060566, 0.826893548102929, 0.826893548102929,
0.872410624145292, 0.69034231997584, 0.69034231997584, 0.735859396018203,
0.644825243933477, 0.644825243933477, 0.644825243933477,
0.599308167891113, 0.599308167891113, -0.4931016571256, 0.69034231997584,
0.69034231997584, -0.4931016571256, 0.326205711636935, -0.311033352956148,
0.189654483509846, 0.189654483509846, -0.356550428998511,
0.0531032553827568, 0.417239863721661, -1.67654563422704,
0.462756939764024, 0.508274015806387, -1.85861393839649,
0.55379109184875, 0.735859396018203, -1.63102855818468, -0.174482124829058,
0.781376472060566, -1.67654563422704, -0.128965048786695,
-0.629652885252689, -1.53999440609995, -0.629652885252689,
-0.629652885252689, -1.58551148214231, -0.584135809210326,
-0.219999200871422, -1.67654563422704, -0.174482124829058,
-0.174482124829058, -1.7220627102694, -0.174482124829058,
1.14551308039947, 1.14551308039947, 1.14551308039947, 1.14551308039947,
1.14551308039947, 1.19103015644183, -0.174482124829058, -1.40344317797286,
0.0531032553827568, -0.128965048786695, -1.44896025401522,
-0.128965048786695, 0.872410624145292, 0.508274015806387,
0.917927700187655, 1.05447892831474), overall_scorescale = c(7.7,
7.7, 7.7, 7.7, 7.7, 7.7, 8.4, 8.4, 8.4, 8.4, 8.4, 8.4, 7.3,
7.3, 7.3, 7.3, 7.3, 7.3, 6.8, 6.8, 6.8, 6.8, 6.8, 6.8, 6.4,
6.4, 6.4, 6.4, 6.4, 6.4, 7.5, 7.5, 7.5, 7.5, 7.5, 7.5, 8.6,
8.6, 8.6, 8.6, 8.6, 8.6, 8.4, 8.4, 8.4, 8.4, 8.4, 8.4, 6.6,
6.6, 6.6, 6.6, 6.6, 6.6, 8.8, 8.8, 8.8, 8.8, 8.8, 8.8, 8.5,
8.5, 8.5, 8.5, 8.5, 8.5, 8.5, 8.5, 8.5, 8.5, 8.5, 8.5, 5.6,
5.6, 5.6, 5.6, 5.6, 5.6, 5, 5, 5, 5, 5, 5, 9, 9, 9, 9, 9,
9, 7.1, 7.1, 7.1, 7.1, 7.1, 7.1, 8.1, 8.1, 8.1, 8.1)), row.names = c(NA,
-100L), class = c("tbl_df", "tbl", "data.frame"))
Code should also be pasted between
# clear environment
rm(list=ls())
par(las=1,pch=16)
require(readxl)
require(dplyr)
require(rstatix)
require(emmeans)
scores <- read_excel("C:/Users/rda2/OneDrive - ..........etc...../Exp4_d.xlsx")
# scores <- read_excel("Exp4_d.xlsx") # RD filepath for testing
scores <- within(scores, {
text <- factor(text)
question <- factor(question)
rater <- factor(rater)
})
######## Analysis ICC
dput(scores)
to maintain formatting.