RE: [R] strange thing with sd

2004-03-29 Thread Rau, Roland
Hello, -Original Message- From: Andreas Pauling [SMTP:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 4:02 PM To: [EMAIL PROTECTED] Subject: [R] strange thing with sd Shouldn't it give always zero? I was running your example code, and I always had the result zero

Re: [R] strange thing with sd

2004-03-29 Thread Peter Flom
I tried your sample code, and a few other variations, and got 0 for all of them, running R 1.8.1 on a Windows machine Peter Peter L. Flom, PhD Assistant Director, Statistics and Data Analysis Core Center for Drug Use and HIV Research National Development and Research Institutes 71 W. 23rd St

Re: [R] strange thing with sd

2004-03-29 Thread Barry Rowlingson
Peter Flom wrote: I tried your sample code, and a few other variations, and got 0 for all of them, running R 1.8.1 on a Windows machine Not only do I get 0 on R 1.8.1 on Unix (linux, RH8), I get _exactly_ 0. I thought this was going to be a simple arithmetic precision problem, but this test

Re: [R] strange thing with sd

2004-03-29 Thread Andreas Pauling
Zitat von Barry Rowlingson [EMAIL PROTECTED]: Peter Flom wrote: I tried your sample code, and a few other variations, and got 0 for all of them, running R 1.8.1 on a Windows machine Not only do I get 0 on R 1.8.1 on Unix (linux, RH8), I get _exactly_ 0. I thought this was going to

RE: [R] strange thing with sd

2004-03-29 Thread Hanke, Alex
Just so you don't feel that you are alone I get the same response as you use R1.8.0 on an XP operating system. Alex -Original Message- From: Andreas Pauling [mailto:[EMAIL PROTECTED] Sent: March 29, 2004 10:02 AM To: [EMAIL PROTECTED] Subject: [R] strange thing with sd Dear R

Re: [R] strange thing with sd

2004-03-29 Thread Uwe Ligges
Andreas Pauling wrote: Dear R people I came across a strange thing: sd(rep(0.01, 15)) #0 sd(rep(0.001, 15)) #4.489023e-19 sd(rep(0.1, 15)) #0 sd(rep(0.0001,15)) #1.712427e-24 sd(rep(0.01, 13)) #1.805557e-18 sd(rep(0.001, 13)) #4.513894e-19 sd(rep(0.1,

Re: [R] strange thing with sd

2004-03-29 Thread Douglas Bates
sd(rep(0.01, 15)) #0 sd(rep(0.001, 15)) #4.489023e-19 sd(rep(0.1, 15)) #0 sd(rep(0.0001,15)) #1.712427e-24 sd(rep(0.01, 13)) #1.805557e-18 sd(rep(0.001, 13)) #4.513894e-19 sd(rep(0.1, 13)) #0 sd(rep(0.0001,13)) #0 sd(rep(5.01,15)) #0