Skip to content
Prev 178170 / 398506 Next

power.t.test formula

Peter Dalgaard:
I didn?t know about power.t.test. A very nice function, indeed. Is there a 
similar function that handles unequal number of observations for each 
group, and unequal variances?

The help file mislead me into thinking that power.t.test handles unequal 
number of observations, and for example  ?power.t.test(c(10,3),1)? *does* 
give some output (and not a warning or error), just not the output I was 
expecting.

(It gives two power values, one for sample of size 10 (for each group) and 
one for samples of size 3 (for each group), while I was expecting the power 
for a sample size 10 for one group and 3 for the other group).