Code covered by the BSD License  

Highlights from
Clinical Test Performance

4.8

4.8 | 5 ratings Rate this file 43 Downloads (last 30 days) File Size: 5.81 KB File ID: #12705
image thumbnail

Clinical Test Performance

by Giuseppe Cardillo

 

19 Oct 2006 (Updated 18 Nov 2010)

The test calculate the performance of a clinical test based on the Bayes theorem

| Watch this File

File Information
Description

This function calculate the performance, based on Bayes theorem, of a clinical test. The input is based on a 2x2 matrix (true positive, false positives; false negative, true negatives).

The Outputs are:
- Prevalence of disease
- Test Sensibility with 95% confidence interval
- Test Specificity with 95% confidence interval
- False positive and negative proportions
- Youden's Index
- Precision or Positive predictivity with 95% confidence interval
- Negative predictivity with 95% confidence interval
- Positive and Negative Likelihood Ratio
- F-Measure
- Test Accuracy or Potency
- Mis-classification Rate
- Error odds ratio
- Diagnostic odds ratio
- Discriminant Power
- Test bias
- Number needed to Diagnose (NDD)

Moreover, the function draws two plots (as you can see in the screenshot)

You can visit my homepage http://home.teletu.it/cardillo
My profile on XING http://www.xing.com/go/invita/13675097
My profile on LinkedIN http://it.linkedin.com/in/giuseppecardillo

MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
11 Mar 2007 catalin001@k.ro mihai  
10 Oct 2009 Jan Simon

Exhaustively commented, so you get not only the resulting numbers, but also the exact description of what they mean, if you read the source.

12 Nov 2010 Benjamin  
12 Nov 2010 Benjamin

Isn't 1-spec equal to false positive rate? I think this is backward on the output partest and roseplot figures (red should be false positive, and yellow should be false negative). In the code it seems like these values (fp1 and fp2) are used correctly throughout and just mis-labelled on the output graphs. Would you mind confirming this? As always, thanks for the excellent code. The comments in this one are really great and I learned a ton going through it.

15 Nov 2010 Giuseppe Cardillo

You are right, but fp1 and fp2 were swapped also into the routine. I have just uploaded a new version of partest. Thank you

18 Nov 2010 Dag Nyman

When tying to open the m file, only the textversion comes up. Not the useful diagram. Solution?

18 Nov 2010 Giuseppe Cardillo

This is not very clear... Precisely what did you mean? If you open an m.file you always have a text version. To have the plots (did you mean plot when you wrote diagram?) you must run partest on MatLab

31 Jul 2011 Shu  
Please login to add a comment or rating.
Updates
23 Oct 2006

Improvement in the first line

23 Oct 2006

fix in errors messages

23 Oct 2006

Fix bug in the first line

30 Oct 2006

Error handling improvements

05 Jul 2007

Youden's index and Discriminant Power added

18 Aug 2007

Added new outputs

30 Apr 2008

minor bugs correction

20 May 2008

Matthews Correlation Coefficient added

12 Nov 2008

Changes in help section

15 Dec 2008

Added a plot of the main results

09 Feb 2009

Mistake correction in discrimination power formula (Thank you Prof. Hans Winkler!)

27 Jul 2009

confidence interval for sensibility and specificity added

29 Jul 2009

Added new 95% confidence intervals for positive and negative predictive values

07 Oct 2009

Help section was updated; computations are more efficient and output is more rational. Statistics are fully detailed.

23 Dec 2009

Changes in description

24 Mar 2010

I added the F-measure and the roseplot

26 Mar 2010

There was a problem with the previous upload: the m-file was missing

15 Nov 2010

in plots and results false discovery rates were inverted. The bug is fixed

18 Nov 2010

I synchronized both plots

Tag Activity for this File
Tag Applied By Date/Time
biotech Giuseppe Cardillo 22 Oct 2008 08:44:33
pharmaceutical Giuseppe Cardillo 22 Oct 2008 08:44:33
clinical test performance Giuseppe Cardillo 22 Oct 2008 08:44:33
sensibility Giuseppe Cardillo 22 Oct 2008 08:44:33
specificity Giuseppe Cardillo 22 Oct 2008 08:44:33
bayes theorem Giuseppe Cardillo 22 Oct 2008 08:44:33
pharmaceutical Cristina McIntire 12 Nov 2008 13:56:41
biotech Cristina McIntire 12 Nov 2008 13:56:45
bayes theorem Claudio Gelmi 06 Mar 2009 14:28:51
clinical test performance Walaa Gouda 17 Nov 2010 08:48:34

Contact us at files@mathworks.com