Skip to content
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

Calculation of Rhat and ESS #50

Closed
fkrauer opened this issue Nov 10, 2021 · 2 comments
Closed

Calculation of Rhat and ESS #50

fkrauer opened this issue Nov 10, 2021 · 2 comments

Comments

@fkrauer
Copy link

fkrauer commented Nov 10, 2021

Hi

Is the calculation of rhat and ESS based on the chains with or without the burnin? Does it matter for the calculation whether I specify discard_burnin=false or discard_burnin=true? Thanks

@itsdfish
Copy link
Owner

MCMCChains calculates rhat and ess based on all samples in the chain object. So if you use discard_burnin=false, those calculations will include the burnin samples. If you leave the burnin samples for visual inspection of convergence, you can slice the chain to remove the burnin samples like so: chain = burnin_chain[500:end, :, :]

@fkrauer
Copy link
Author

fkrauer commented Nov 10, 2021

yes, that's what I suspected. Thanks!

@fkrauer fkrauer closed this as completed Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants