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