[R] Function for AIC or logLIK for nlsList object
Ben Bolker
bolker at ufl.edu
Fri Jun 12 14:43:43 CEST 2009
Lindsay Banin wrote:
>
> Dear R users,
>
> Does anybody have a function to calculate logLik or AIC for nlsList
> objects? After receiving error messages, another user helped me ascertain
> that this function is not currently written into R.
>
how about:
library(nlme)
example(nlsList)
sapply(fm1,logLik)
sum(sapply(fm1,logLik))
?
--
View this message in context: http://www.nabble.com/Function-for-AIC-or-logLIK-for-nlsList-object-tp23995762p23998109.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list