[R] "non-sample" standard-deviation

Daniel Malter
Wed, 09 Jul 2008 09:54:57 -0000

I don't think so, but you can easily write a function for that:

vec=c(1,2)
pop.sd=function(x)(sqrt(var(x)*(length(x)-1)/length(x)))
pop.sd(vec) ##as compared to
sd(vec)

Best,
Daniel

-------------------------
cuncta stricte discussurus
-------------------------

-----Urspr?ngliche Nachricht-----
Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Im
Auftrag von el_eli at gmx.de
Gesendet: Wednesday, July 09, 2008 5:35 AM
An: R-help at r-project.org
Betreff: [R] "non-sample" standard-deviation

Hi,
R seems to use the "1/n-1"-factor calculating the standard-deviation
sd().

If i wat to get the "non-sample" standard-deviation i use
sqrt(sd(x)^2*((n-1)/n))

Is there a parameter to get the sd()-function using the "1/n" factor
directly?
Or is there any other function to do so?

Thank you in advance :-)
Best,
Eli

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.