> library(MASS)
> methods("logLik")
[1] logLik.Arima* logLik.fitdistr* logLik.gam logLik.glm*
[5] logLik.glmmPQL* logLik.lm* logLik.negbin* logLik.nls*
[9] logLik.polr*
Non-visible functions are asterisked>
glm generates an object of class "glm", so tick!
glm.nb generates an object of class ... "negbin", so tick!
Because the methods are starred, though, they will not be directly
accessible.
(I am to blame for choosing class name "negbin" for objects generated
by
glm.nb, but it's far too late to do anything about it now!)
Bill Venables.
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of kyoung
Sent: Friday, 21 March 2008 2:53 AM
To: r-help at r-project.org
Subject: [R] logLik calculations
Does the "logLik" function applied to a "glm" and
"glm.nb" (from MASS
package) calculate the complete log-likelihoods, or does it drop the
constant terms of the equation? (It's not clear from the associated help
pages, and I've found no reference from searching the R help mailing
list)
Thank you,
Kelly Young
______________________________________________
R-help at 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.