Answered step by step
Verified Expert Solution
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 Qa # Customer 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.frametlmrk # CG Qb # Use your fitted logistic regression and your "newdata" in the predict ########## function to make a prediction of the probability the customer would subscribe. predicttlmrk new, type"response"
# CG Qa # Customer 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.frametlmrk
# CG Qb # Use your fitted logistic regression and your "newdata" in the predict
########## function to make a prediction of the probability the customer would subscribe.
predicttlmrk new, type"response"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started