[R] Combining Data Sets w/ Weights
btpagano
bzp5005 at psu.edu
Fri Sep 17 17:15:48 CEST 2010
Here it is...
> str(Males$BMXHT)
num [1:2801] 168 161 180 182 169 ...
> str(Females$BMXHT)
num [1:3440] 162 159 164 165 159 ...
> str(Males$yourWeight)
num [1:2801] 1148 788 10298 25115 8691 ...
> str(Females$myWeight)
num [1:3440] 9169 4964 2608 2806 907 ...
I want to combine Males$BMXHT with Females$BMXHT. I also want to combine
Males$yourWeight and Females$myWeight in a similar way so that I can use the
wtd.quantile() command in the following way:
wtd.quantile(Everybody$BMXHT, weights=ourWeight, 0.05)
I know that this might seem like some elementary stuff, but I'm not too
familiar with R yet. I hope to become much better in the future.
Thanks for all of your help,
Brian
--
View this message in context: http://r.789695.n4.nabble.com/Combining-Data-Sets-w-Weights-tp2543167p2543995.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list