[R] error message

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu Jan 22 02:36:38 CET 2004

forkusam <forkusam at yahoo.com> writes:

>  Hi,
> Can someone please tell me what such an error message
> could mean. i.e where a problem must have arised.
> Error in uniroot(function(n) eval(p.body) - power,
> c(2, 1e+07)) : 
>         f() values at end points not of opposite sign

Looks like the innards of one of the power calculations, finding n to
achieve a given power. You'd likely get an error like that if the
power is not between 0 and 1, but how about telling us what you were
trying to do?

   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