Diff for "FAQ/power/onesamp" - CBU statistics Wiki
location: Diff for "FAQ/power/onesamp"
Differences between revisions 1 and 15 (spanning 14 versions)
Revision 1 as of 2008-04-04 10:45:15
Size: 216
Editor: PeterWatson
Comment:
Revision 15 as of 2017-08-31 12:15:23
Size: 1097
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
This [attachment:onesamp.cls spreadsheet] computes the total sample size for a one sample t-test with given power. This [[attachment:onesamp.xls|spreadsheet]] computes the total sample size for a one sample t-test with given power.
Line 5: Line 5:
This can also be done using this on-line calculator. This can also be done using this [[http://www.stat.ubc.ca/~rollin/stats/ssize/n1.html|on-line calculator.]] Both these programs use the more liberal normal quantiles as opposed to t quantiles for sample size evaluation.

The web calculator [[http://www.sample-size.net/sample-size-study-paired-t-test/ | here]] computes the number of subjects for a paired t-test using the formula on page 39 of
 
Kraemer HC and Thiemann S (1987) How many subjects? Statistical power analysis in research. Sage.:London. (There should be a copy of this book in the CBU library).

The formula is:
N for paired t-test = (1.96+0.842)^2 ^ / (difference in paired means / sd of the DIFFERENCE in the means)^2 ^ for 80% power and two-tailed type I error of 5% so

__Example__
Using the above formula if the raw paired subject difference is 0.303 and the sd of this difference equals 0.266 then we require 7.85 / (0.303/0.266)^2 ^ = 6 subjects.

Sample size for a one sample t-test

This spreadsheet computes the total sample size for a one sample t-test with given power.

This can also be done using this on-line calculator. Both these programs use the more liberal normal quantiles as opposed to t quantiles for sample size evaluation.

The web calculator here computes the number of subjects for a paired t-test using the formula on page 39 of

Kraemer HC and Thiemann S (1987) How many subjects? Statistical power analysis in research. Sage.:London. (There should be a copy of this book in the CBU library).

The formula is: N for paired t-test = (1.96+0.842)2 / (difference in paired means / sd of the DIFFERENCE in the means)2 for 80% power and two-tailed type I error of 5% so

Example Using the above formula if the raw paired subject difference is 0.303 and the sd of this difference equals 0.266 then we require 7.85 / (0.303/0.266)2 = 6 subjects.

None: FAQ/power/onesamp (last edited 2017-08-31 12:27:03 by PeterWatson)