paperKB
coga / coga-kb
Help
Sign in

Chunk #10 — Materials and Methods — 4. Binary data in a small sample

Source
Do baseline P-values follow a uniform distribution in randomised trials?
Embedded
yes

Text

To compare two groups for a binary variable, such as gender, a chi-squared test or Fisher’s exact test would be used. As in the previous simulations, two samples of size 10 were generated, this time with a binary outcome variable with probability 0.5 of being 0 and 0.5 of being 1. The uncorrected chi-squared test and Fisher’s exact tests were carried out. This was repeated 10,000 times.