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: [EMAIL PROTECTED] [mailto:r-help-
> [EMAIL PROTECTED] On Behalf Of Pablo Andres
> Sent: Thursday, November 16, 2006 3:22 PM
> Cc: [email protected]
> 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
> 
> ______________________________________________
> [email protected] 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.

______________________________________________
[email protected] 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.

Reply via email to