Dear H Z, Take a look at the examples in require(MASS) ?glm.nb
This might be useful as well summary(glm.nb(yourvariable ~ 1, data = yourdata)) HTH, Jorge On Fri, May 15, 2009 at 7:26 AM, H Z <zamani_...@yahoo.com> wrote: > Dear all > please ,I need to write a function in R to estimate the parameters of > negative binomial distribution and then calculate the loglikelihood amount > for given data.Is there any one to help me. > thank you very much for any help > Best regards > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.