Re: [R] Cumulative Function

From: Sean Davis <sdavis2_at_mail.nih.gov>
Date: Fri 26 Aug 2005 - 20:33:59 EST


Will ?cumsum help?

Sean

On 8/26/05 5:15 AM, "Mark Miller" <mmiller@nassp.uct.ac.za> wrote:

> I was wandering if anyone cold advise me on a good algorithm to turn a set of
> data from its original for into its cumulative form. I have written a piece
> of code that takes the data and does essentially what a histogram function
> would do, except add to the new bin the sum in the previous bin. Once that
> is done I divide by the frequency in the last bin plus 1. I know the ecdf()
> function exists in R, but I want to use it to fit the cumulative
> distributions to the data and ecdf() produces a non-subscriptable vector and
> so fitdistr() cannot be used on it.
>
> Thanks for any help you can give
> Mark Miller
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Aug 26 20:39:20 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:58:24 EST