Hi, I am trying to generate an ROC curve for my data. The perfcurve function requires perfcurve(label,scores,posclass). My data has 2 labels, either AD or CN.
I have a categorical array called audsPreds which is my 'scores' in perfcurve as it is the predicted values from my neural network. audsActual is the actual values inputted which I am using for 'label' in perfcurve. I am using '1' as my posclass which should depict AD, not CN. I am having many issues with getting perfcurve to work. I don't know if my audsPreds and audsActual categorical arrays have to be changed so that AD reads 1 and CN reads 2. When I try to run the function it says 'scores' should be passed as floating point values.
I may have done more things incorrectly, please help.