Exercise

# In-sample fit restricted model

You calculated the accuracy for `logitModelFull`

. It's very important to do that with all your model candidates.

Therefore,`logitModelNew`

is specified and lives in your environment.

When comparing the values of the different models with each other: In case different models have the same accuracy values, always choose the model with less explanatory variables.

Instructions

**100 XP**

Do the same steps as in the previous exercise for the new model.

Use

`predict()`

to receive a probability for each customer to default his payment.Then calculate a confusion matrix with the same threshold of 0.5 for classification. Note that

`SDMTools`

cannot be downloaded from CRAN anymore. Install it instead via`remotes::install_version("SDMTools", "1.1-221")`

.Calculate the accuracy of the restricted model and compare it to the accuracy of the full model. You will continue your analysis only with the superior model.