Question: 1 2 ) You will predict the loan term, which is either 3 6 or 6 0 . For this purpose, # first run the

12) You will predict the loan term, which is either 36 or 60. For this purpose,
# first run the following code to convert 36 to "1", and 60 to "0".
d$termCat = factor(ifelse(d$term ==36,1,0))
# Now your outcome variable to be predicted is termCat (not term).
# a ) Construct a logistic regression model to predict the termCat using predictors:
# total_income and total_credit_utilized
# b) Make a prediction using your model for the following new customer.
# Is the prediction 36 or 60 months?
total_income =75000
total_credit_utilized =30000
new.customer = data.frame( total_income =75000, total_credit_utilized =30000)

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 Programming Questions!