Diff for "FAQ/oddsr" - CBU statistics Wiki
location: Diff for "FAQ/oddsr"
Differences between revisions 11 and 12
Revision 11 as of 2006-11-15 12:31:50
Size: 917
Editor: PeterWatson
Comment:
Revision 12 as of 2006-11-16 14:11:51
Size: 995
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
An orrds ratio test is carried out by this [attachment:or.xls]spreadsheet.

Suppose we have a 2 x 2 table of frequencies

Col 1

Col 2

Row 1

a

b

Row 2

c

d

The Odds Ratio is defined as ad/bc

It turns out that

Variance{ln(OR)} = (1/a) + (1/b) + (1/c) + (1/d)

so it follows

ln(OR)*ln(OR) / variance ( ln(OR) )

is chi-square on 1 degree of freedom.

If you have a zero cell then adding one half to all the frequencies enables an estimate of the odds ratio to be made.

An orrds ratio test is carried out by this [attachment:or.xls]spreadsheet.

Reference:

Everitt BS (1996) Making Sense of Statistics in Psychology A Second Level Course. OUP:Oxford.

None: FAQ/oddsr (last edited 2015-11-12 15:36:24 by PeterWatson)