Re: [R] logLik calculations

From: <Bill.Venables_at_csiro.au>
Date: Fri, 21 Mar 2008 15:49:44 +1000

> 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.

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. Received on Fri 21 Mar 2008 - 05:54:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Mar 2008 - 06:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive