From: Adaikalavan Ramasamy (gisar@nus.edu.sg)
Date: Tue 10 Dec 2002 - 18:50:36 EST
Message-id: <024D6AEFCB92CB47BA1085751D184BB80105F1CD@MBXSRV03.stf.nus.edu.sg>
Just out of curiosity, can some please explain the following return NA.
x <- 6
var(x)
y <- c( NA, NA, 10000 )
var(y, na.rm=T)
Unless I am seriously misguided, I believe that the variance of a single
number (i.e. a constant) should be zero. Thanks.
Regards, Adai.
______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Tue 01 Jun 2004 - 09:31:51 EST