I'm a huge fan of leveraging mle2 for fitting complex models. However, I have run into multiple instances where I obtain values for downstream quantities like AICc which don't make sense.
Approximately 99 times out of 100, this is because the value being determined internally for nobs is incorrect. Because the object passed to the function using the argument data could hypothetically take just about any form, it seems to me that the assumption inherent in the following line of code is only sometimes guaranteed to be correct.
|
if (!missing(data)) attr(m,"nobs") = length(data[[1]]) |
I'm a huge fan of leveraging
mle2for fitting complex models. However, I have run into multiple instances where I obtain values for downstream quantities like AICc which don't make sense.Approximately 99 times out of 100, this is because the value being determined internally for
nobsis incorrect. Because the object passed to the function using the argumentdatacould hypothetically take just about any form, it seems to me that the assumption inherent in the following line of code is only sometimes guaranteed to be correct.bbmle/R/mle.R
Line 587 in 918d335