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
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
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
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
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
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,
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