Updated with data: Error in Diff…must be factors with the same levels
问题 I hope you all can help me. I have a list with two data frames -- contests and expvar. In the data frame contests , each row is a match with the first column being the winner of the match, and the second column being the loser of the match. In the data frame expvar I have player-specific predictor variables. These are all numbers. I am trying to use the BradleyTerry2 package to analyze my data. Here is the code I am using: a <- data.frame(read.csv(file.choose())) b <- data.frame(read.csv(file