Sorry I am quite new to R, but I have a dataframe with gamelogs for multiple players. I am trying to get the slope coefficient for each player\'s points over all of their games.
library nlme has a function for this as well, lmList
nlme
lmList
library(nlme) coef(lmList(game ~ pts | name, gamelogs)) # (Intercept) pts # player1 7.714286 -0.42857143 # player2 4.230769 0.08241758