Question: Make a column of categorical data for Age Level. Code just two levels: 2 5 and under, 2 6 and older. Make a column of

Make a column of categorical data for Age Level. Code just two levels: 25 and under, 26 and older.
Make a column of categorical data for Discount level. Code these levels: 5 or less, 6 to 10,11 to 15,16 and higher.
Perform Naive Bayes. Put the two variables you just made, plus sex into the X, factor box.
Report the accuracy, specificity, sensitivity, and precision rates on the validation data of this model.
Hint: always do this on the validation data set.
Write your answers with 2 digits after the decimal, including any leading and trailing zeros. If your answer is fifty percent, write 0.50.

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!