I am trying to implement Fisher Scoring on simulated i.i.d. Poisson data recursively, but I am getting a stack overflow error. I did some simple tests and found that the guess value is not changing after the first iteration.
Error: C stack usage 7969872 is too close to the limit
Does anyone know what is going on?
Much appreciated
Edit: Changing the stack limit does not resolve the issue because the issue is with convergence and not memory. (I.e. the guess value is not changing).
Your question doesn't really need one (and due to the error, couldn't be produced, anyway) since there are no libraries to be loaded and no data. Still, it helps to enclose in triple backticks to make it easier to cut and past
Thank you for the help! After thinking about convergence, I looked back at the mathematical model and found that I had left out a log and in addition confused convergence to true parameter value with convergence to the ML estimate. My revised code is below: