✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Create a variable called actual_fraud which equals "No" if the fraud variable equals 0, and "Yes" if the fraud variable equals 1. How many cases of fraud were detected?
HINT: You can use the rep() function to first fill the actual_fraud variable with one response, eg , then use a conditional statement to replace observations with the other response accordingly.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!