Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# CG Q 6 a # Customer 1 0 in our dataset did not end up subscribing to the term deposit. ########## Let's use our

# CG Q6a # Customer 10 in our dataset did not end up subscribing to the term deposit.
########## Let's use our fitted model to see what it would have predicted for this customer.
########## First, create an object called "new" that that you will pass to the predict()
########## function in the newdata argument.
new <- data.frame(tlmrk[10])
# CG Q6b # Use your fitted logistic regression and your "newdata" in the predict()
########## function to make a prediction of the probability the customer would subscribe.
predict(tlmrk, new, type="response")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions