-
Notifications
You must be signed in to change notification settings - Fork 27
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
错误: in ‘mif2’: ‘dmeasure’ with log=TRUE returns illegal value #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is the data used: |
Your transformation functions are not inverse to one another. For example, if you have
in the snippet that implements transformation to the estimation scale, then you would want
in the snippet that transforms back onto the model scale. See the manual. P.S. I'm surprised the code that you've furnished runs at all. You must be using a very old version of the package. Why is that? |
Thank you very much for your reply! The version of "pomp" that I am using is 5.6. Unfortunately, even after making the changes to the code as you suggested, I am still not getting the correct results. The modified code is as follows:
The error message is:
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Thank you for your time at first!
I'm trying to estimate parameters in a epidemic model via the mif2 algorithm. Unfortunately there is often an error message that the dmeasure returns non-finite values during the mif2 process. I found that one of the state variables “cases” is negative by using the Rprintf statement, and the parameter “rho” related to this state is also negative, but I have set the parameter “rho” to be finite (0.0.1). I don't know why this happens.The code and data are:
The text was updated successfully, but these errors were encountered: