Re: [R] "non-sample" standard-deviation

From: Daniel Malter <daniel_at_umd.edu>
Date: Wed, 09 Jul 2008 05:54:57 -0400


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.

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. Received on Wed 09 Jul 2008 - 09:59:28 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Jul 2008 - 10:31:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive