I have an experiment in which students are asked to solve a maze under two groups (TRT v. Ctrl) over 10 different trials. In each trial, students can try 3 times to solve the maze. If they solve it in the first time, we assign 1, the second time 2, the 3rd time 3, and if in each trial a student cannot solve the maze, we assign 4. I'd like to test whether there is any "learning effect" over time. Consider two frequency tables below, one for the first trial and the other one for the 8th trial:
Trial1 <- matrix(c(18,14,7,7,2,6,5,30) , ncol = 4, byrow = TRUE)
Trial8 <- matrix(c(28,10,4,4,17,10,5,11) , ncol = 4, byrow = TRUE)
colnames(Trial1) <- colnames(Trial8) <- c(1:4)
rownames(Trial1) <- rownames(Trial8) <- c("CTRL","TRT")
For example, the table trial1 shows that 18 students in the CTRL group solve the puzzle in the first try in Trial 1.
My question is how I can test whether there is any learning effect? How to compare the two frequency tables?
Thank you for your help,