arviz icon indicating copy to clipboard operation
arviz copied to clipboard

Allow creation of InferenceData from CmdStanGQ objects

Open WardBrian opened this issue 4 years ago • 2 comments

CmdStanPy allows you to run a standalone generated quantities run which returns a different data object than the standard .sample() method. That said, I believe it contains everything you'd need for a posterior-group-only InferenceData object.

This would be great for doing posterior predictive plotting - currently if I want to use arviz for this I need to re-run my whole model so I have a CmdStanMCMC object to pass to the arviz functions.

This was briefly mentioned in #844 but there appears to not be any more recent discussion

WardBrian avatar Jul 02 '21 18:07 WardBrian

I need to check my code, I think I have this implemented somewhere.

ahartikainen avatar Jul 02 '21 20:07 ahartikainen

Thank you, it would be very helpful. I think I could rig something using some of the older code in the cmdstanpy io portion if you aren't able to find anything

WardBrian avatar Jul 06 '21 13:07 WardBrian