You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this is a "feature" :-)
The logLik() function should handle this in the same way that the C code handles segments with zero variance.
Thanks for catching!
I don't know if you will consider this a bug or not, but it baffled me for a while, so I'd figured I would report it.
Created on 2024-04-04 with reprex v2.1.0
The problem occurs here, because there is a segment of length 2 with 0 variance, and thus the likelihood computation returns
-Inf
.It seems weird to me that the algorithm works, but the
logLik()
returns-Inf
. If not an error, perhaps at least a warning should be thrown?The text was updated successfully, but these errors were encountered: