From p.dalgaard@biostat.ku.dk  Fri May 19 10:06:32 2000
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 19 May 2000 11:06:32 +0200
Subject: [Rd] variance of a scalar (PR#546)
In-Reply-To: J.C.Rougier@durham.ac.uk's message of "Fri, 19 May 2000 10:42:04 +0200 (MET DST)"
References: <200005190842.KAA28916@pubhealth.ku.dk>
Message-ID: <x2k8gqlxif.fsf@blueberry.kubism.ku.dk>

J.C.Rougier@durham.ac.uk writes:

> I was surprised to find that the variance of a scalar, using
> var(), is NA.  Surely this should be zero?

I don't think so. There's a divide by zero involved.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] variance of a scalar (PR#546)
Peter Dalgaard BSA