[R] Individual log likelihoods of nlsList objects.

From: Ken Kelley <kkelley_at_nd.edu>
Date: Fri 02 Jul 2004 - 05:23:16 EST


Hello all.

I was wondering if the logLike.nls() and logLike.nlme() functions are still being used. Neither function seems to be available in the most recent release of R (1.9.1). The following is contained in the help file for logLik(): "classes which already have methods for this function include: 'glm', 'lm', 'nls' and 'gls', 'lme' and others in package 'nlme'." Thus, I was expecting that logLik.nls() and logLik.nlme() could be used for objects of the nls and nlme class, respectively. Are these functions no longer needed because logLike() subsumes logLike.nls() and logLike.nlme() as special cases? Did/does logLike.nls() and logLike.nlme() have any advantages above and beyond logLike() when applying them to nls and nlme objects?

On a related note, is there a way to get the log likelihoods of each individual from an nlsList object?

On p. 349 of Pinheiro and Bates (2000) the logLik() function is said to give the sum of the individual nls log-likelihoods. However, logLike(some.nlsList.object) does not work for me (even when there are no NAs). Any ideas?

Thanks for any thoughts or feedback. Have a good day, Ken



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jul 02 05:27:08 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 09:14:11 EST