[R] SD

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue May 13 12:07:24 CEST 2003

Wladimir Eremeev wrote:
> Dear r-help,
>   Function sd calculates the standard deviation 'with (n-1)
>   denominator'.
>   Are there any alternatives with n denominator?
>   Thank you very much.

I don't know, but
  sqrt(sum((x - mean(x))^2) / n)
from the definition is a quick hack (computational not nice, for sure).

Uwe Ligges

More information about the R-help mailing list