Turns out I hadn't sufficiently tested the changes... sorry for the mess! When running AICc on a list of objects without a "nobs" attribute, the "sapply" on line 114 was creating a list with several NULL entries, instead of a single NULL value. With that, the second null test (line 117) was always false!
I've also changed some sapplys to lapplys to preserve the "df" attributes in the logLik objects, as the original objects passed as "object, ..." may not have df attributes as well.
Turns out I hadn't sufficiently tested the changes... sorry for the mess! When running AICc on a list of objects without a "nobs" attribute, the "sapply" on line 114 was creating a list with several NULL entries, instead of a single NULL value. With that, the second null test (line 117) was always false!
I've also changed some sapplys to lapplys to preserve the "df" attributes in the logLik objects, as the original objects passed as "object, ..." may not have df attributes as well.