我得到了以下结果
> z<-fitdist(p2, "gamma", method="mge", gof="AD2") #where p2 is a data sample
> z
Fitting of the distribution ' gamma ' by maximum goodness-of-fit
Parameters:
estimate
shape 0.28831646
rate 0.03594412如果我使用
> z$estimate
estimate
shape 0.28831646
rate 0.03594412我试图将形状和速率的数量放在一个特定的独立变量中。你知道怎么做吗?
发布于 2020-03-03 22:47:40
您可以使用
z$estimate["shape"]
z$estimate["rate"]来获取数值,或者还
z$estimate[1]
z$estimate[2]https://stackoverflow.com/questions/60509664
复制相似问题