|
ROC curve analysis in MedCalc
DescriptionAllows to create a ROC curve and a complete sensitivity/specificity report. In a ROC curve the true positive rate (Sensitivity) is plotted in function of the false positive rate (100-Specificity) for different cut-off points of a parameter. Each point on the ROC plot represents a sensitivity/specificity pair corresponding to a particular decision threshold. The area under the ROC curve is a measure of how well a parameter can distinguish between two diagnostic groups (diseased/normal). How to enter data for ROC curve analysisIn order to perform ROC curve analysis in MedCalc you should have a measurement of interest (= the parameter you want to study) and an independent diagnosis which classifies your study subjects into two distinct groups: a diseased and non-diseased group. The latter diagnosis should be independent from the measurement of interest. In the spreadsheet, create a column DIAGNOSIS and a column for the variable of interest, e.g. TEST1. For every study subject enter a code for the diagnosis as follows: 1 for the diseased cases, and 0 for the non-diseased or normal cases. In the TEST1 column, enter the measurement of interest (this can be measurements, grades, etc. - if the data are categorical, code them with numerical values).
Required inputComplete the ROC curve analysis dialog box as follows:
Data
Methodology:
Options
Graphs
A few moments after you have pressed the Enter key, or clicked the OK button, the following appears in the results window. The report may consist of several pages of text, and press the Page down key to see the next pages of the report. ResultsFirst the program displays the number of observations in the two groups. Concerning sample size, it has been suggested that meaningful qualitative conclusions can be drawn from ROC experiments performed with a total of about 100 observations (Metz, 1978). A minimum of 50 cases may be required in each of the two groups, so that 1 case represents not more than 2% of the observations.
The value for the area under the ROC curve can be interpreted as follows: an area of 0.84, for example, means that a randomly selected individual from the positive group has a test value larger than that for a randomly chosen individual from the negative group in 84% of the time (Zweig & Campbell, 1993). When the variable under study can not distinguish between the two groups, i.e. where there is no difference between the two distributions, the area will be equal to 0.5 (the ROC curve will coincide with the diagonal). When there is a perfect separation of the values of the two groups, i.e. there no overlapping of the distributions, the area under the ROC curve equals 1 (the ROC curve will reach the upper left corner of the plot). The 95% Confidence Interval is the interval in which the true (population) Area under the ROC curve lies with 95% confidence.. The P-value is the probability that the sample Area under the ROC curve (0.947 in the example) is found when in fact, the true (population) Area under the ROC curve is 0.5 (null hypothesis: Area = 0.5). If P is low (P<0.05) then it can be concluded that the Area under the ROC curve is significantly different from 0.5 and that therefore there is evidence that the laboratory test does have an ability to distinguish between the two groups. The next section of the results window lists the different selection criteria or cut-off values with their corresponding sensitivity and specificity of the test, and the positive (+LR) and negative likelihood ratio (LR). If the disease prevalence is known, the program also reports the positive predictive value (+PV) and negative predictive value (-PV): When you did not select the option Include all observed criterion values, the program only lists the more important points of the ROC curve: for equal sensitivity (resp. specificity) it gives the threshold value (criterion value) with the highest specificity (resp. sensitivity). When you do select the option Include all observed criterion values, the program will list sensitivity and specificity for all possible threshold values. The criterion value indicated with a * sign is the value corresponding with the maximum of the Youden index: J = max[SEi + SPi - 1] where SEi and SPi are the sensitivity and specificity over all possible threshold values. This value corresponds with the point on the ROC curve farthest from the diagonal line.
Importance of disease prevalenceWhereas sensitivity and specificity, and therefore the ROC plot, and positive and negative likelihood ratio are independent of the prevalence of the disease, positive and negative predictive values are highly dependent on the proportions of subjects who do and do not have the disease (prior probability of disease), and hence on the population studied. Clinically, the disease prevalence is the same as the probability of disease being present before the test is performed. If the sample sizes in the positive and the negative group do not correspond to the real prevalence of the disease, indicate this in the dialog box by deselecting the corresponding option:
In this case the program will not calculate the positive and negative predictive values. However, if you do know the disease prevalence in the population, you can enter the percentage in the dialog box:
Display ROC curveThe ROC curve will be displayed in a second window when you have selected the corresponding option in the dialog box.
In a ROC curve the true positive rate (Sensitivity) is plotted in function of the false positive rate (100-Specificity) for different cut-off points. Each point on the ROC plot represents a sensitivity/specificity pair corresponding to a particular decision threshold. A test with perfect discrimination (no overlap in the two distributions) has a ROC plot that passes through the upper left corner (100% sensitivity, 100% specificity). Therefore the closer the ROC plot is to the upper left corner, the higher the overall accuracy of the test (Zweig & Campbell, 1993).
When you click on a specific point of the ROC curve, the corresponding cut-off point with sensitivity and specificity will be displayed. Presentation of resultsThe prevalence of a disease may be different in different clinical settings. For instance the pre-test probability for a positive test will be higher when a patient consults a specialist than when he consults a general practitioner. Since positive and negative predictive values are sensitive to the prevalence of the disease, it would be misleading to compare these values from different studies where the prevalence of the disease differs, or apply them in different settings. The data from the results window can be summarized in a table. The sample size in the two groups should be clearly stated. The table can contain a column for the different criterion values, the corresponding sensitivity (with 95% CI), specificity (with 95% CI), and possibly the positive and negative predictive value. The table should not only contain the test's characteristics for one single cut-off value, but preferably there should be a row for the values corresponding with a sensitivity of 90%, 95% and 99%, specificity of 90%, 95% and 99%, and the value corresponding with the highest accuracy (maximum sensitivity and specificity as indicated with a * mark in the results window). With these data, any reader can calculate the negative and positive predictive value applicable in his own clinical setting when the knows the prior probability of disease (pre-test probability or prevalence of disease) in this setting, by the following formula's based on Bayes' theorem:
and
The negative and positive likelihood ratio must be handled with care because they are easily and commonly misinterpreted. Literature
See also |