-
Notifications
You must be signed in to change notification settings - Fork 16
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
atsar dlm is producing poor fits #1
Comments
The following produces better fits:
where dlm-vec.stan is
Output in this case is |
After more poking into dlm.stan and comparing to ss_rw.stan in atsar, I think the problem is more basic and has to do probably with the 2D matrices. Here I show a random walk observed with error coded as a dlm versus as a rw w error. The model fits fine with exec/ss_rw.stan code but not with the exec/dlm code.
|
Note that
in dlm.stan is definitely a problem since beta might be well outside that. ss_rw uses normal(0,10). But even when I changed that it didn't fix the problem. |
Whatever version I merged still had my work in progress scripts. Apologies for that. I find that the
|
Better still, modeling on the differences between successive states greatly improves the sampling speed and effective sample sizes. Note the option to pass a I learned this from a comment to the gelman blog post: https://statmodeling.stat.columbia.edu/2019/04/15/state-space-models-in-stan/
|
Example
plot differences
The text was updated successfully, but these errors were encountered: