The calculation of the function are done correctly, but in the documentation the functions asks for X to be the vector of predicted data and Y vector of observed data by doing that the metrics for Sensibility and Specificity are wrong. If the opposite is done, the calculations are correct. I suggest changing the description in the documentation to avoid misunderstanding.
