Re: [R] power for repeated-measures ANOVA lacking sphericity

From: Thomas Lumley <tlumley_at_uw.edu>
Date: Fri, 11 Mar 2011 08:25:40 +1300

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

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 10 Mar 2011 - 19:31:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 10 Mar 2011 - 19:40:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive