Hi,

One "easy" way to do that is by using the "nls" (nonlinear least square)
library.

Basically you will test with that if your distribution can be adjusted to
the distribution you say it matches (Weibull?) through the adjustment of
some parameters.

The base package includes the "nls" library, but also you can use nlwr() as
well.
Or check the library NISTnls for particular examples.

Regards,
Carlos Ortega
www.qualityexcellence.es

On Tue, Mar 15, 2011 at 5:23 PM, Lathouri, Maria <
m.lathouri06@imperial.ac.uk> wrote:

> Actually I have already done a search on that but it was not much of a
> help. That is why I posted it in the r-help in case it was much more
> helpful.
>
> Thank you.
>
> Kind regards
> Maria
>
> ________________________________________
> From: David Winsemius [dwinsemius@comcast.net]
> Sent: 15 March 2011 16:19
> To: Lathouri, Maria
> Cc: r-help@r-project.org
> Subject: Re: [R] fitting a distribution to a ecdf plot
>
> 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@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
> ______________________________________________
> R-help@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.
>

	[[alternative HTML version deleted]]

