I am performing some prediction models. I have 2 binary columns , one with predicted values and the other one with the actual values.
Since the columns have few ones because it counts the number of people with cancer, i want to observe how many cases the model detected(how many real ones it predicted) and the percentage of sick persons correctly predicted.
Brief description of the data: the first column shows the real values and the seconde one shows the predicted values:
> predictedvsreal
         real prediction
39240       0    0
39241       0    0
39242       0    0
39243       1    0
39244       0    1
39245       0    0
39246       0    0
39247       0    0
39248       1    1
39249       0    0
39250       0    0
39251       0    0
39252       0    0
Thanks!
 
     
    