Try a variety of fitting methods and select the best one

selectFit(data, distr, weights = NULL, verbose = TRUE)

Arguments

data

The data to fit

distr

Name of the distribution to fit

weights

Optional vector of weights

verbose

logical. Whether to print progress messages

Value

The selected fit object

Details

The distribution is fitted to the data using each of the fitdist fitting methods. The fit with the smallest Cramer-von Mises statistic is selected.