Skip to content
Prev 26134 / 398502 Next

Variance of a single number

Most probably:


     The denominator n - 1 is used which gives an unbiased 
estimator of
     the (co)variance for i.i.d. observations. These functions return
     `NA' when there is only one observation (whereas S-plus has 
been
     returning `NaN'), and from R 1.2.3 fail if `x' has length zero.

from help page for var

try
?var
On 10 Dec 2002 at 15:50, Adaikalavan Ramasamy wrote:

            
Petr Pikal
petr.pikal at precheza.cz
p.pik at volny.cz