Question: Create a logistic regression model that predicts the draft round column using nba 2 k 2 0 - full.csv file. Using R programming, remove undrafted

Create a logistic regression model that predicts the draft round column using nba2k20-full.csv file.
Using R programming, remove undrafted players from the data set so that only players from the first or second round are kept.
Be sure to have a training set and a test set
Use rating, position, salary, and college as the features. position and college need to be one hot encoded. Salary needs to be converted to a number. Hints to do that are to create a new feature on the dataframe to store the converted salary along with using the following functions where column would be the salary and n is where in the string to start so that the $ symbol is removed from the string.
as.double(substring(column,first=n))
Train the model
Execute the model on the test set
output the confusion matrix.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!