Skip to content
Prev 22845 / 398502 Next

weighting means

Hello to all

Is there a way to get weighted means using summary.formula() from Hmisc?

For example, the following doesn't work:
Error in wtd.mean(y, weights = z$w) : dim<- length of dims do not match the length of object

Thanks for the replies,

Oscar Rueda



22/08/02 1:16:15, Frank E Harrell Jr <fharrell at virginia.edu> escribió:
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._