-
Notifications
You must be signed in to change notification settings - Fork 22
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
Signal strength, Error assumptions, and MCMC convergence #390
Comments
Comments below:
On May 28, 2020, at 2:28 PM, Tzu-Yao <[email protected]<mailto:[email protected]>> wrote:
Hi,
I'm using State-Space Bayesian Partial Pooling approach for my model and I have a few questions:
1. Does the model provide information of coefficient of determination, R2det? If it does, how can I access it?
It does not . R2 is difficult to calculate with multilevel models. Yes you could simply estimate the residual variance vs the model variance.
https://statmodeling.stat.columbia.edu/2019/04/23/r-squared-for-multilevel-models-2/
1.
2. When dealing with data with low metabolism signal (low diel change in DO), I found that the process error terms made the DO fluctuation even less. I have tried completely disregarding process error (setting "err_proc_iid = FALSE" in mm_name) or modified "err_proc_iid_sigma_scale" in specs, but it turned out that process errors were either 0 or still large. I'm wondering if there's any way that I can modify the standard deviation of process error (err_proc_iid_sigma?) in my partial pooling model.
Low diel change in O2 is deadly for simultaneously estimating gas exchange. That is because there needs to be lots of diel swing to the O2 to help define the rate of gas exchange. I do not know what you mean by modify the process error? Impose a different prior on it?
1.
2. To see if the chains in MCMC converged, I was looking for Rhat of standard deviation of K600 in the model outputs but failed to find it in get_fit (I did see Rhat for K600 mean and K600 predlog) or other functions. Does the model provide such information?
The output will have as part a stanfit object and the rhats should be in there. You are correct to check for those for all of the parameters.
http://usgs-r.github.io/streamMetabolizer/articles/models_bayes.html
and see the stan website for what is in a stanfit object.
https://mc-stan.org
The math and reasoning behind Bayesian models are difficult (for me at least). This is the book that I use to both learn for myself and teach from. It is especially good with hierarchical models
https://www.amazon.com/Bayesian-Models-Statistical-Primer-Ecologists/dp/0691159289
1.
Thank you so much,
Tzu-Yao
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#390>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC4CU5S3TO6ZDFW6DZZ3ASLRT3CODANCNFSM4NNM3TAA>.
|
Hi Bob,
My model specifications:
`$daily $inst $overall $KQ_overall $KQ_binned $warnings $errors Again, thanks so much, |
Hi Tzu-Yao, take out the |
I think |
|
Hi Alison, That's exactly what I was looking for. Thanks! my specs after I added "DO_R2:"
The warnings/errors: Thank you, |
Try updating the package with remotes::install_github('USGS-R/streamMetabolizer') (because |
Thanks Alison, I updated the streaMetabolizer with However, I realized that I wonder if the model also provides R2det if that makes sense? Thank you so much, |
Ah, thanks for the reminder - amazing how much I can forget after writing a whole paper on something! The |
Thank you Alison and Bob. Your answers/comments are really helpful! |
Hi Alison, I think I'm still a little confused about the process error manipulation. Like you said, it seems that the only parameter I can adjust in the model to change process error is |
Yeah, that was what I was looking at. Thank you for the clarification! |
Hi @aappling-usgs, sorry it's been a while. I guess I'm still confused about this... I used the A part of the Also, while I was analyzing the errors in my model (on low signal and high noise data), I found that if I disregard process error (i.e. observation-error model, Fig. 2), the
Thank you, |
Hi,
I'm using State-Space Bayesian Partial Pooling approach for my model and I have a few questions:
Does the model provide information of coefficient of determination, R2det? If it does, how can I access it?
When dealing with data with low metabolism signal (low diel change in DO), I found that the process error terms made the DO fluctuation even less. I have tried completely disregarding process error (setting "err_proc_iid = FALSE" in mm_name) or modified "err_proc_iid_sigma_scale" in specs, but it turned out that process errors were either 0 or still large. I'm wondering if there's any way that I can modify the standard deviation of process error (err_proc_iid_sigma?) in my partial pooling model.
To see if the chains in MCMC converged, I was looking for Rhat of standard deviation of K600 in the model outputs but failed to find it in get_fit (I did see Rhat for K600 mean and K600 predlog) or other functions. Does the model provide such information?
Thank you so much,
Tzu-Yao
The text was updated successfully, but these errors were encountered: