[R] package MASS - MLE of negative binomial distributions
rik.verdonck at bio.kuleuven.be
Thu Dec 10 16:21:07 CET 2015
I have a question about the exact estimate of the maximum likelihood for a negative binomial fit. I'm trying to approach this in two different ways: the first one is a fit using the glm.nb method, and the second one is a fit using the fitdistr function for each condition separately, where I add up all log likelihoods. These two methods do not yield the same values for the log likelihood of the fit. They do yield the same log likelihood if all data are one group (no summation), so I assume I'm doing something wrong when I sum up log likelihoods. Am I not "allowed" to do this?
for(group in levels(groups))
More information about the R-help