Data and R code to calculate the adjusted plus minus in basketball
The data are obtained from http://basketballvalue.com/downloads.php
The matchups file includes information about line-ups while the players file includes information about the players
The code provided assumes the structure of these files, however it can be easily adjusted if the structure is different.