Diff for "FAQ/oddsr" - CBU statistics Wiki
location: Diff for "FAQ/oddsr"
Differences between revisions 4 and 6 (spanning 2 versions)
Revision 4 as of 2006-11-14 17:14:07
Size: 567
Editor: PeterWatson
Comment:
Revision 6 as of 2006-11-14 17:18:50
Size: 897
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="42%">||c1|| c2 ||
 r1 ||a||b||
 r1 ||c||d||
||||||<33% style="TEXT-ALIGN: center"> ||<33% style="TEXT-ALIGN: center"> '''Time 1''' ||<34% style="TEXT-ALIGN: center"> '''Time 2'''||
||||||<33% style="VERTICAL-ALIGN: top"> Correct ||<33% style="VERTICAL-ALIGN: top"> a ||<34% style="VERTICAL-ALIGN: top"> b ||
||||||<33% style="VERTICAL-ALIGN: top"> Correct ||<33% style="VERTICAL-ALIGN: top"> c ||<34% style="VERTICAL-ALIGN: top"> d ||

Suppose we have a 2 x 2 table of frequencies

Time 1

Time 2

Correct

a

b

Correct

c

d

The Odds Ratio is defined as ad/bc

It turns out that ln(OR) has a variance of (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.

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)