I am trying to verify whether my data set fits exponential or negative binomial, the function works for exponential but I get the following error using "nbinom":
> compare = fitdistr(A, densfun="nbinom")
Error in fitdistr(A, densfun = "nbinom") : unsupported distribution
Note: I know I need more than this to verify its likely distribution. But the issue I am having is more the fact the "nbinom" isn't functioning