我在R和统计方面都相当陌生,我想让gamm3或pearson3分布适合我的数据。
library(FAdist)
library(fitdistrplus)
x <- c(0.001997200, 0.001394317, 0.001370849, 0.012834016, 0.019159712, 0.025188951,
0.022244131, 0.014106406, 0.008868671, 0.012125222, 0.006264516, 0.003963972,
0.007039349, 0.003851282, 0.008097258, 0.027124656, 0.020585667, 0.030458707,
0.028788703, 0.021149622, 0.014449268, 0.009816604, 0.008374822, 0.009914779)
fitdist(x, dgamma3, start=list(shape=1, scale=0.08, thres=0.005),
lower=c(0,0,0), upper=c(Inf,Inf,min(x)))
不起作用。
Error in mledist(data, distname, start, fix.arg, ...) :
Starting values must be in the feasible region.
我不明白怎么了?我玩耍时使用了不同的形状,比例和阈值,但没有运气。
任何人都可以帮忙:)