Displaying 1 result from an estimated 1 matches for "aicmle".
Did you mean:
acle
2006 Jun 05
2
Calculation of AIC BIC from mle
...nd the AIC function, but it does not seem to work with objects of
class mle -
If I execute the following:
ml1 <- mle(...)
AIC(ml1)
I get the following error messale:
Error in logLik(object) : no applicable method for "logLik"
Therefore I am using the following to calculate the AIC:
#AICmle calculate AIC from mle object
AICmle <- function( m, k=2)
{
lL <- logLik(m)
edf <- attr(lL, "df")
LL <- lL[1]
- 2 * LL + k * edf
}
1) Why is AIC not working with objects of class mle - am I doing
something wrong, is it a bug or by design?
2) Just for confirmation - is my...