logo

Crowdly

Create a variable called  actual_fraud  which equals "No" if the fraud variable ...

✅ 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

rep("No",9134)

,

then use a conditional statement to replace observations with the other

response accordingly.

More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!