Answered step by step
Verified Expert Solution
Question
1 Approved Answer
print(Prediction for defaulting (yes or no): missed_payment='none', assets='car','house', credit_utilize=30) newdata1
print("Prediction for defaulting (yes or no): missed_payment='none', assets='car','house', credit_utilize=30") newdata1 <- data.frame(missed_payment='no', assets='car','house', credit_utilize=30) predict(pruned_model1, newdata1, type='class')
print("Prediction for defaulting (yes or no): missed_payment='missed', assets='no', credit_utilize=30") newdata2 <- data.frame(missed_payment='yes', assets='no', credit_utilize=30) predict(pruned_model1, newdata2, type='class')
How to fix this code?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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