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

Correct syntax for chainscat and chainsstack #122

Open
astro-kevin opened this issue May 23, 2023 · 3 comments
Open

Correct syntax for chainscat and chainsstack #122

astro-kevin opened this issue May 23, 2023 · 3 comments

Comments

@astro-kevin
Copy link

I'm not sure what's the correct syntax for the functions chainscat and chainsstack. I tried calling chainscat(a,b) and chainsstack([a,b]) and both return an error. (As an aside, is the only difference between the two one takes chains as arguments and one takes a vector of chains?) In my test code, both a and b are MCMCChains objects.

@cpfiffer
Copy link
Member

cpfiffer commented May 24, 2023 via email

@astro-kevin
Copy link
Author

Here is the error: ERROR: ArgumentError: chain ranges differ. I think that's because of the burn in which is discarded. However, I'm just not really understanding how this works because the object which it returns when it does work (when I'm stacking any except the first chain), it returns an object with multiple chains, rather than one long chain as I expect. Are the stats presented on the multiple chains equivalent to the one with very many samples?

@cpfiffer
Copy link
Member

For this it might be more helpful if you posted the whole script you're using, or, even better, a minimum working example -- is that something you're able to do?

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