Re: [R] Basic stratification calculations

From: vito muggeo <vmuggeo_at_dssm.unipa.it>
Date: Fri 04 Mar 2005 - 19:48:59 EST

Hi,
if I understand correctly, tapply() is your friend here,

vito

dvrecko@sfu.ca wrote:
>
> Hi. I'm a student at SFU in Canada. The basic thing I want to do is
> calculate means of different strata. I have 2 vectors. One has the values I
> want to take the means from, the other is the four strata I am interested
> in. So I essentially want to break up the information vector into the four
> strata and calculate four means, one for each stratum. How can I do this in
> a reasonable way?
>
>
> Thanks very much.
> Dean Vrecko
>
> PS: Incidentally I forget how to see the code of functions. Does anyone
> remember the command to do this?
>
> ______________________________________________
> R-help@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
>

-- 
====================================
Vito M.R. Muggeo
Dip.to Sc Statist e Matem `Vianelli'
UniversitÓ di Palermo
viale delle Scienze, edificio 13
90121 Palermo - ITALY
tel: 091 6626240
fax: 091 485726/485612

______________________________________________
R-help@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
Received on Fri Mar 04 20:07:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:40 EST