Good afternoon everyone.
I have a problem. I want to create a ROC curve. I have a table with 560 rows and 1 column, where are 0 and 1 which I named FinalDatasetToCompare and said it was my pred class. Another table with 560 rows and a column with values equal to 0 and 1 which I named Original and have 260- > 0 and 260- > 1. I have been doing hypothesis tests but wanted to use the roc curve to detect cut-off points for a better degree of significance:
resp =
  560×1 table       
    Var2   
    ___
     0  
     0  
     0  
     0  
     0  
     0  
     0  
     0  
     0  
     0  
     0  
     0  
     0  
     1  
     1  
     1  
     1  
     1  
     1  
     1  
     1  
     1  
     1  
     1  
     1  
pred =
  560×1 table
    PStatus
    _______
       0   
       0   
       0   
       1   
       0   
       1   
       1   
       0   
       1   
       1   
       1   
       1   
       1   
       1   
       0   
       1   
       1   
       0   
       1   
       0   
       1   
       1   
       0   
       1   
       1   
       0   
       1   
       1   
       0   
       1   
       0   
       0   
       1   
pred = FinalDatasetToCompare(:,"PStatus")
resp = Original_labels_from_images(:,"Var2");
respA = table2array(resp);
mdl = fitglm(pred,respA,"Distribution","binomial","Link","logit")
scores = mdl.Fitted.Probability;
[X,Y,T,AUC,OPTROCPT] = perfcurve(Original_labels_from_images(:,"Var2"),scores,"PStatus");
I make this code but its wrong..
Can anyone help me?