[R] Average & sample size

Nordlund, Dan (DSHS/RDA) NordlDJ at dshs.wa.gov
Fri Nov 17 00:57:23 CET 2006


How about 

?weighted.mean

Dan

Daniel J. Nordlund
Research and Data Analysis
Washington State Department of Social and Health Services
Olympia, WA  98504-5204
 

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-
> bounces at stat.math.ethz.ch] On Behalf Of Pablo Andres
> Sent: Thursday, November 16, 2006 3:22 PM
> Cc: R-help at stat.math.ethz.ch
> Subject: [R] Average & sample size
> 
> Hi there!
> I need a piece of advice obtaining the average of 4 samples from
> different sample sizes.
> lets's see that my numbers are:
> 
> 6,3,6 and 15
> and each one comes from:
> 100,130,125 and 33 sample sizes.
> 
> I need a command in R to solve this!
> I guess it should not be complicated but... it happens to me! jejeje
> Thanks a Lot
> 
> Pablo
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.



More information about the R-help mailing list