Re: [R] error message
I am trying to calculate n, using power.t.test power.t.test(n=NULL,delta=delta, sd=sigmaEins, sig.level= alpha, power=power, type=c(two.sample), alternative=c(two.sided)) The values of the parameter are read in from a file. I have no idea what the error message means. --- Peter Dalgaard [EMAIL PROTECTED] wrote: forkusam [EMAIL PROTECTED] 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 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 = = Sylvie B. Forkusam Eppelheimer Str.52/A2-5-2 69115 Heidelberg, Germany Tel: (0049)-06221/346913 Mobile: 0179-6816276 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] error message
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 Thank you cilver = = Sylvie B. Forkusam Eppelheimer Str.52/A2-5-2 69115 Heidelberg, Germany Tel: (0049)-06221/346913 Mobile: 0179-6816276 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] Precision
Hi, I would like to increase the Precision of R by increasing the Number of decimal places in calcultaions. I get about 7 decimal places and would like to have over 15. is the a means to inflence this? Thanks = = Sylvie B. Forkusam Eppelheimer Str.52/A2-5-2 69115 Heidelberg, Germany Tel: (0049)-06221/346913 Mobile: 0179-6816276 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] read.table(..)..Help?
Hallo, can someone please help me. I have a proplem reading a file with more that one rows. e.g I used the function: p-read.table(file=FILENAME , header=TRUE,sep=;) and later used the data.Frame() function. It functions when the file has only a row of variables. When I insert the second row I get an error message. How do I do this = = Sylvie B. Forkusam Eppelheimer Str.52/A2-5-2 69115 Heidelberg, Germany Tel: (0049)-06221/346913 Mobile: 0179-6816276 === __ Free Pop-Up Blocker - Get it now __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] reading data rows
I have problems reading a file with more than one row to carry out mathematical calculations I have a a file of the form mu1 mu2 alpha betaWsigma sigmaA b r 25 15 .05 .05 22 3.3.5 30 20 .1 .2 22 .3.3.5 I intend to read one row , carry out the calculations and then the next row with which I intend to do the same calculations. I do the following. p-read.table(file=eingabe.csv, header=TRUE,sep=;) data.frame(as.numeric(mu1-p$mu1),as.numeric(mu2-p$mu2), as.numeric(alpha-p$alpha),as.numeric(beta-p$beta), as.numeric(Wsigma-p$Wsigma),as.numeric(sigmaA-p$sigmaA),as.numeric(b-p$b),as.numeric(r-p$r)) I intend to use the variables stored in the the data frame for my caculations. but each time I try I get the followingerror message. Error in uniroot(function(n) eval(p.body) - power, c(2, 1e+07)) : invalid function value in 'zeroin' In addition: Warning message: the condition has length 1 and only the first element will be used in: if (f(lower, ...) * f(upper, ...) = 0) stop(f() values at end points not of opposite sign) ...which I do not get when I use just one row. Thanks sylvie = = Sylvie B. Forkusam Eppelheimer Str.52/A2-5-2 69115 Heidelberg, Germany Tel: (0049)-06221/346913 Mobile: 0179-6816276 === __ Free Pop-Up Blocker - Get it now __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] variables
Hi, can someone please help me. I will give a simple example of my problem. p - function() { i - 1 sr - function(){ i-i+3 i- sqrt(i) } cat(i) } This is just an example. My main problem is defining i like a global variable which I can use in the sub- and main functions without any complicated switches. Thanks in advance. cilver = = Sylvie B. Forkusam Eppelheimer Str.52/A2-5-2 69115 Heidelberg, Germany Tel: (0049)-06221/346913 Mobile: 0179-6816276 __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help