I am trying to use the package BradleyTerry2 in R to assess sports teams. I am using the paper "Bradley-Terry Models in R: The BradleyTerry2 Package" written by Turner and Firth to guide me. I have gotten the model to work, but now would like to include player-specific predictor variables.
Currently, my data is set up as such: First column is the winning team, second column is the losing team, third column is the frequency. I am not sure how to insert the predictor variables. I tried including a fourth column with the winning team's variables and a fifth column with the losing team's variables, but have not gotten this to work. I am not sure if I am just not setting the data up correctly, or if my code is wrong.
So, one step at a time. I guess for now, my question is--I am setting up the data correctly? If not, how should it be set up?