[R] power for repeated-measures ANOVA lacking sphericity

Thomas Lumley tlumley at uw.edu
Thu Mar 10 20:25:40 CET 2011


On Fri, Mar 11, 2011 at 6:08 AM, Yuelin Li <liy12 at mskcc.org> wrote:
> Is there a function that calculates the power of a
> repeated-measure ANOVA design, e.g., 2 groups, 4
> within-subject factors, an average 0.40 correlation between
> the 4 within factors, etc.
>
> I don't think I can use power.anova.test() because it does
> not consider corr=0.40.
>

The easiest approach is likely to be simulation: simulate data from
the design and compute the p-value, repeat a few thousand times.

    -thomas

-- 
Thomas Lumley
Professor of Biostatistics
University of Auckland



More information about the R-help mailing list