我试图验证我的数据集是否符合指数或负二项式,该函数适用于指数型,但我使用“nbinom”得到以下错误:
> compare = fitdistr(A, densfun="nbinom")
Error in fitdistr(A, densfun = "nbinom") : unsupported distribution注意:我知道我需要比这更多的东西来验证它可能的分布。但我遇到的问题更多的是"nbinom“不起作用
发布于 2017-02-26 19:59:46
看起来您正在将使用过的函数MASS::fitdistr()与fitdistrplus::fitdist()混合在一起。
从documentation中,您可以看到"negative binomial"是在您使用的fitdistr函数中指定此分布的字符串。
https://stackoverflow.com/questions/42467239
复制相似问题