[R] weighting observations

Federico Spinazzi spinazzi at databankgroup.it
Thu Oct 19 09:40:53 CEST 2000


Dear R users,

I wonder how to weight observationswhen computing statistics and creating
tables (e.g. of counts)
I'm used to the SPSS paradigm (WEIGHT by foo.) where any subsequent command
will weight any variable ...

Suppose that I want to compute a table of weighted counts: is the right
R-approach to write a little custom function or it could be better to write
a new class (data.frame.weightable) or, finally, there is already a
'standard' way to do this ?

Regards,
Federico Spinazzi
spinazzi at databankgroup.it
Databank S.P.A
Via Spartaco, 19, ITALY
Tel. + 39 02 55002251


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list