[R] Distribution Fitting with R

Bert Gunter gunter.berton at gene.com
Mon Aug 5 20:04:39 CEST 2013


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 <paulbernal07 at 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 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.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm



More information about the R-help mailing list