[R] qqnorm() with weighted data?
tlumley at u.washington.edu
Sat May 11 01:48:58 CEST 2002
On 10 May 2002, Russell Senior wrote:
> I've got a set of data that are weighted by a largish integer (ranging
> from about 50K to 1.5 million). I'd like to plot CDF's for this data
> taking into account the weighting. What do you recommend?
I'd use stepfun() in the "stepfun" package. If necessary, use aggregate
to sum the weights over unique values and then divide by the total weight
to get probabilities for the observed values, get cumulative sums with
cumsum() and then feed these to stepfun
Thomas Lumley Asst. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
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