Diff for "FAQ/power/powexample" - CBU statistics Wiki
location: Diff for "FAQ/power/powexample"
Differences between revisions 14 and 18 (spanning 4 versions)
Revision 14 as of 2008-09-24 16:30:07
Size: 1449
Editor: PeterWatson
Comment:
Revision 18 as of 2013-03-08 10:17:59
Size: 1554
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Suppose we have a three way interaction of three factors called age, sex and type. Age and sex are between subject and have two levels and type is within subject and comprises four levels. Suppose we have a three way interaction of three factors called age, sex and type. Age and sex are between subject and each have two levels whilst type is a within subject factor and has four levels.
Line 5: Line 5:
There are two between subjects factors (age, sex) with 2 levels each do $$b_{1}=b_{2}$$ = 2. Their interaction (which comprises the term of interest) has (2-1)*(2-1)=1 df. There is one within subjects factor (type) with 4 levels so $$w_{1}$$ = 4. We can now use these to work out our inputs. There are two between subjects factors (age, sex) with 2 levels each and, so, both have dfs of (2-1)=1. Their interaction (which comprises the term of interest) has (2-1)*(2-1)=1 df. There is one within subjects factor (type) with 4 levels so type has a df of (4-1)=3. We can now use these to work out our inputs.
Line 7: Line 7:
num = numerator df = (2-1)(2-1)(4-1)=3 num = numerator df = df for age*sex*type = (2-1)(2-1)(4-1)=3
Line 10: Line 10:
(sum of age, sex and age*sex interaction dfs). (sum of dfs for the between subject factor terms: age, sex and age*sex)
Line 12: Line 12:
wdf = (4-1) = 3 (for type) wdf = (4-1) = 3 (df for the within subject factor, type)
Line 14: Line 14:
Putting these together, assuming conservatively no correlation between types, with an alpha=0.05, partial eta-squared of 0.10 and a power of 0.80 gives a total sample size of 39 required. Putting these together, assuming conservatively the types are uncorrelated, for a power of 0.80 we require 39 people assuming an alpha of 0.05 and a partial eta-squared of 0.10.
Line 16: Line 16:
If we assume an average correlation of 0.25 amongst the types with a partial eta-squared of 0.10 we only need a total sample size of 30 for a power of 0.80. If we assume an average correlation of 0.25 amongst pairs of types with a partial eta-squared of 0.10 we only need a total sample size of 30 for a power of 0.80.

Suppose we have a three way interaction of three factors called age, sex and type. Age and sex are between subject and each have two levels whilst type is a within subject factor and has four levels.

Pilot data has suggested an effect size, partial eta-squared, of 0.10 as worthy of interest. We wish to do a power calculation to see how many people we will need to detect an eta-squared of at least 0.10 with a power of 0.80 and a Type I error of 5%.

There are two between subjects factors (age, sex) with 2 levels each and, so, both have dfs of (2-1)=1. Their interaction (which comprises the term of interest) has (2-1)*(2-1)=1 df. There is one within subjects factor (type) with 4 levels so type has a df of (4-1)=3. We can now use these to work out our inputs.

num = numerator df = df for age*sex*type = (2-1)(2-1)(4-1)=3

bsum = (2-1) + (2-1) + (2-1)*(2-1) = 3 (sum of dfs for the between subject factor terms: age, sex and age*sex)

wdf = (4-1) = 3 (df for the within subject factor, type)

Putting these together, assuming conservatively the types are uncorrelated, for a power of 0.80 we require 39 people assuming an alpha of 0.05 and a partial eta-squared of 0.10.

If we assume an average correlation of 0.25 amongst pairs of types with a partial eta-squared of 0.10 we only need a total sample size of 30 for a power of 0.80.

Reference

Faul, F. & Erdfelder, E. (1992) GPOWER: A priori, post-hoc, and compromise power analyses for MS-DOS [Computer program]. Bonn, Germany: Bonn University, Dep. of Psychology.

None: FAQ/power/powexample (last edited 2013-03-08 10:17:59 by localhost)