library(fitdistrplus)
data(groundbeef)
serving <- groundbeef$serving
fitg <- fitdist(serving, "gamma")
res<-bootdist(fitg)#further accuracy estimate
#which parameter should be selected?
> summary(res)
Parametric bootstrap medians and 95% percentile CI
Median 2.5% 97.5%
shape 4.04523398 3.41773958 4.80480936
rate 0.05495878 0.04632007 0.06587446
> res$fitpart$estimate
shape rate
4.00825257 0.05441911
bootdist()
之后总是用来获得更准确的参数fitdis()
。
如上例,summary(res)
提供几个参数,res$fitpart$estimate
提供一个参数,应该选择哪一个?