I have to test my data in three distributions: Poisson, Negative Binomial and Geometric.
To test Poisson, I'm using:
glm(formula = frequencia ~ frequencia ,
family = poisson(link = "log"),
data = data_fit,
method = "glm.fit")
And the results are ok.
To test geometric, I'm using:
glm(formula = frequencia ~ frequencia,
family= negative.binomial(theta = 1),
data=data_fit)
And the results are ok too.
But, to test negative binomial, I'm using:
MASS::glm.nb(formula = frequencia ~ frequencia,
data = data_fit,
link = "log",
method="glm.fit")
And i'm receiving this error:
Error in while ((it <- it + 1) < limit && abs(del) > eps) { : missing value where TRUE/FALSE needed
My data_fit is a vector/dataframe with 1000 values; all values in vector are the same and equal to 0.06.
I'm looking for the AIC, BIC and Deviance results of glm.nb function and parameters of negative binomial distribution.
Is there any way to find the values (AIC, BIC, Deviance, Parameters) with a zero variance, like the problem that i have?