Question: load(url('https://www.dropbox.com/s/dmt8l3fhmqqi9g2/players_stats.rdata?dl=1')) We use as the target variable players' total number of games played during the season, which is saved in column Games_Played. We consider three
load(url('https://www.dropbox.com/s/dmt8l3fhmqqi9g2/players_stats.rdata?dl=1')) We use as the target variable players' total number of games played during the season, which is saved in column Games_Played. We consider three performance metrics per player, including field goal percentage (column FG_pct), three pointers percentage (column ThreeP_pct), and free throws percentage (column FT_pct). (Note. Do not include install.packages("rpart") in your R script). Use df_players_stats_pf to estimate a regression tree, which specifies the relationship between players' number of games played and the three metrics. Save the estimated tree model in object tree_reg
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
