Skip to content

Instantly share code, notes, and snippets.

@puterleat
Created January 19, 2015 13:56
Show Gist options
  • Select an option

  • Save puterleat/cb280fafd963ca4992f1 to your computer and use it in GitHub Desktop.

Select an option

Save puterleat/cb280fafd963ca4992f1 to your computer and use it in GitHub Desktop.
[1] -- Monday, January 19, 2015 -- 13:55:53
Exact - Proportions: Inequality, two independent groups (Fisher's exact test)
Options: Exact distribution
Analysis: A priori: Compute required sample size
Input: Tail(s) = One
Proportion p1 = .2
Proportion p2 = .1
α err prob = 0.05
Power (1-β err prob) = 0.95
Allocation ratio N2/N1 = 1
Output: Sample size group 1 = 288
Sample size group 2 = 288
Total sample size = 576
Actual power = 0.9504861
Actual α = 0.0376810
[2] -- Monday, January 19, 2015 -- 13:56:00
Exact - Proportions: Inequality, two independent groups (Fisher's exact test)
Options: Exact distribution
Analysis: A priori: Compute required sample size
Input: Tail(s) = One
Proportion p1 = 0.5
Proportion p2 = .4
α err prob = 0.05
Power (1-β err prob) = 0.95
Allocation ratio N2/N1 = 1
Output: Sample size group 1 = 557
Sample size group 2 = 557
Total sample size = 1114
Actual power = 0.9500348
Actual α = 0.0448913
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment