All aspects of development in Analysis (which does not fit in another project)

FS#11 - TAB does not calculate OR for large N

Attached to Project: Analysis
Opened by Jamie Hockin (jhockin) - Friday, 14 August 2009, 12:03 GMT
Task Type Bug Report
Category Statistics
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version 2.1.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



generate 10000
gen i ill=ran(2)
gen i expose=ran(2)
tab ill expose /or // get OR=0, CI=0,0 <--*******
tab ill expose /rr // get correct RR (close to 1)

The value of N is greater than 6000, but with my random numbers the point at which OR is not calculated varies (e.g. wrong at n=6400, OK at n=6420) so it must also have to do with the distribution of values in the table.

This will be easy to add to a test script

This task depends upon