Minimization of the absolute distance between the empirical and the estimated distribution is based on Kolmogorov-Smirnov(KS) criterion, and the method of minimization of squared difference between the empirical and the estimated distribution is based on Cramér–von Mises (CVM) criterion.
KS approach is more aware of the centre of distribution, however, CVM aware on the whole space. Both of the criteria exhibit diverging degrees of test bias in some situations. The KS has more power against deviations in the middle, but not at all. Also, as I found, it is computationally easy.
in fact gives very similar results and additionally some information about the uncertainty and correlation of the parameter estimates. This package also provides some convenient functions to produce plots comparing data and fitted model.
In fact, I am also interested in the estimate of the mathematical expectation of r after we used fitdistr. Any ideas of how this could be quickly accomplished?
The problem is that this article uses a different parametrization, but in the help of the package flexsurf you can find how these parameters van be calculated from (m(u), s(igma), Q).
Minimization the ks-distance is better to fit a probability distribution for data, rather than the sum of the square of differences. So error function should be,
Minimization of the absolute distance between the empirical and the estimated distribution is based on Kolmogorov-Smirnov(KS) criterion, and the method of minimization of squared difference between the empirical and the estimated distribution is based on Cramér–von Mises (CVM) criterion.
KS approach is more aware of the centre of distribution, however, CVM aware on the whole space. Both of the criteria exhibit diverging degrees of test bias in some situations. The KS has more power against deviations in the middle, but not at all. Also, as I found, it is computationally easy.
At present I'm trying to figure out how it would be better to construct an R code to find an estimate of the mean of a random variable that follows the general gamma distribution. Any thoughts on this matter would be highly appreciated!