Try fitdistr in package MASS or fitdist in package fitdistrplus or goodfit in package vcd.
Also ?shapiro.test ?ad.test ?chisq.test There is also Vito Ricci's "Fitting Distributions with R" in the contributed documentation for R at http://cran.r-project.org/doc/contrib/Ricci-distributions-en.p df ------------------------------------ David L Carlson Associate Professor of Anthropology Texas A&M University College Station, TX 77840-4352 -----Original Message----- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Paul Bernal Sent: Monday, August 5, 2013 1:11 PM To: Bert Gunter Cc: r-help@r-project.org Subject: Re: [R] Distribution Fitting with R Hello Bert, Thank you for your comments. I want to actually fit a formal statistical distribution to my data using the classical methodologies (either Shapiro Wilk, Anderson Darling, Chi-Square, etc.). Once I have fitted a distribution then I will start generating random numbers and performing the Monte Carlo Simulation. That is the reason why!! Best regards, Paul 2013/8/5 Bert Gunter <gunter.ber...@gene.com> > Just sample with replacement from your empirical distribution? See: > > ?sample ## note the "replace" argument > > Other than that, I do not understand what you mean by "distribution > fitting analysis." > > Cheers, > Bert > > On Mon, Aug 5, 2013 at 10:55 AM, Paul Bernal <paulberna...@gmail.com> > wrote: > > Hello everyone, > > > > Basically, I want to perform some distribution fitting analysis to a > > particular data that I have. > > > > So the data I will be working with is structured as follows: > > > > *Vessel Size* * Number of Vessels* > > *Frequency* > > > > 1000-2000 TEUS 1000 > > 1% > > 2000-3000 TEUS 3000 > > 15% > > 3000-4000 TEUS 2750 > > 10% > > 4000-5000 TEUS 5700 > > 30% > > > > > > The field Vessel Size is a categorical one, specifying what is the vessel > > size category, then the field Number of Vessels tells me how many vessels > > are in each one of those vessel size categories and frequency is just the > > percentage of the total (this is just an example). > > > > How can I perform a distribution fit for this data? The reason why I want > > to fit a distribution is to then perform a Monte Carlo Simulation with > the > > data. > > > > Any help will be greatly appreciated, > > > > Best regards, > > > > Paul > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > 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. > > > > -- > > Bert Gunter > Genentech Nonclinical Biostatistics > > Internal Contact Info: > Phone: 467-7374 > Website: > > http://pharmadevelopment.roche.com/index/pdb/pdb-functional-gr oups/pdb-biostatistics/pdb-ncb-home.htm > [[alternative HTML version deleted]] ______________________________________________ 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. ______________________________________________ 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.