Question: The nbaallelo _ mlr . csv data base contains information on 1 2 6 3 1 5 NBA games between 1 9 4 7 and
The nbaallelomlrcsv data base contains information on NBA games between and The columns report the points made by one team, the Elo rating of that team coming into the game, the Elo rating of the team after the game, whether the team won or lost, and the points made by the opposing team.
Load the data set into a data frame.
Recode the categorical variable gameresult into a dummy variable, win.
Use the ols function to perform a multiple regression with pts as the response variable and eloi win, and opppts in that order, as the predictor variables
Create an analysis of variance table using the results of the multiple regression.
Ex: If the Elo rating of the team after the game, elon is used instead of eloi the output is:
sumsq df F PRF
elon e
gameresultW e
opppts e
Residual e NaN NaN
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
