[R] fitting a distribution to a ecdf plot

David Winsemius dwinsemius at comcast.net
Tue Mar 15 17:19:17 CET 2011


On Mar 15, 2011, at 12:00 PM, Lathouri, Maria wrote:

> Dear all,
>
> I need to plot an cumulative distribution plot of a variable and  
> then to fit a distribution to that, probably a weibull or lognormal.
>
> I have plotted the ecdf as
>> plot(ecdf(x))
>
> but I haven't managed to fit the distribution. I have as well  
> attached the data.

Try a search on one of the R search sites with:

"Fitting distributions with R"  # use the quotes


>
> I would appreciate if you could help me on that.
>
> Thank you.
>
> Kind regards
> Maria
> <example.txt>______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list