[R] power.t.test function

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Feb 19 00:21:02 CET 2003

Andrew.Swan at csiro.au writes:

> Hi - Is it possible to use the power.t.test function in a scenario where the
> number of observations in each group is different?

No. It's not rocket science to modify the p.body expression, though.
The tricky bit is what to do instead of "solve for n".

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907

More information about the R-help mailing list