Open Datseris opened 3 years ago
version: [2fda8390] LsqFit v0.12.0
.
I would guess singular or near-singular information matrix (or whatever equivalent is used here).
When will I ever learn to read the provided example before answering. The problem is exactly that. Your third parameter gives you a zero in the hessian of the likelihood function (the interpretation we use when we think about standard errors). Your third gradient entry is exactly, constantly zero so your last row and column of your hessian is too.
G(p) = [g1, g2, 0]
H(p) = [h1 h2 0
h2 h3 0
0 0 0]
something like that. In other words, the third parameter is unidentified. It could be anything. https://en.wikipedia.org/wiki/Identifiability
Thank you. Although a bit too late for when I was using this, nevertheless I appreciate the answer. So to conclude, I shouldn't use "null" parameters and always use as many parameters as I actually use in my model.
A suggestion for LsqFit: to throw a warning when this happens? If I read your message correctly, the package has all the information it needs to make such a statement?
I knew it from your model. I guess it can be a bit hard to check. But if the inv (should be a factorization, but...) fails, we could certainly catch it and ask the user to check for identification, yes.
Hi,
I'm running code that guaranteed worked just a week ago, but since then I've done some package updates, and also moved to Julia 1.6. Julia 1.6 is not the problem, same error I get when falling back to Julia 1.5.1.
Here is a MWE:
Any ideas how to fix?
p.s.: While making a MWE, I've checked the Tests folder of this package, and couldn't find a call to
confidence_interval
anywhere... Where is this function tested?