Code covered by the BSD License  

Highlights from
Odds

Be the first to rate this file! 8 Downloads (last 30 days) File Size: 3.48 KB File ID: #15347

Odds

by Giuseppe Cardillo

 

19 Jun 2007 (Updated 23 Dec 2009)

Compute odds and risk ratio on 2x2 matrix

| Watch this File

File Information
Description

This function calculates the Risk Ratio and the Odds Ratio (OR) on a 2x2 input matrix. Both ratios are computed with confidence intervals. If confidence interval of OR doesn't encompass the value OR=1, then the function computes the Bayesian Credibility Assessment of the test. If the test is credible, the function calculates the Association Parameter Phi. The association parameter Phi=sqrt(chisquare/N). The routine coumputes the Power and, if necessary, the sample sizes needed to achieve a power=0.80 using a modified asymptotic normal method with continuity correction as described by Hardeo Sahai and Anwer Khurshid in Statistics in Medicine, 1996, Vol. 15, Issue 1: 1-21.

You can visit my homepage http://home.tele2.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.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
21 Jun 2007

Fix bug in confidence interval computation

05 Jul 2007

Added power calculation

28 Aug 2007

updating power and sample sizes calculation

13 Sep 2007

I fixed a bug in standard error of log(RR) as suggested by Torsten Heyer

12 Jun 2008

NORMINV and NORMCDF was replaced by ERFCINV and ERFC so Statistics Toolbox is no more needed.

24 Sep 2008

Improvement in input error handling

12 Nov 2008

Changes in help section

23 Dec 2009

Changes in description

Tag Activity for this File
Tag Applied By Date/Time
statistics Giuseppe Cardillo 22 Oct 2008 09:16:25
probability Giuseppe Cardillo 22 Oct 2008 09:16:25
odds ratio Giuseppe Cardillo 22 Oct 2008 09:16:25
risk ratio Giuseppe Cardillo 22 Oct 2008 09:16:25
2x2 Giuseppe Cardillo 22 Oct 2008 09:16:25
compute Giuseppe Cardillo 22 Oct 2008 09:16:25
statistics Cristina McIntire 12 Nov 2008 14:02:04
probability Cristina McIntire 12 Nov 2008 14:02:04

Contact us at files@mathworks.com