-
-
Notifications
You must be signed in to change notification settings - Fork 65
add as_mcmc_list function #584
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
add as_mcmc_list function #584
Conversation
Codecov Report
@@ Coverage Diff @@
## master #584 +/- ##
==========================================
- Coverage 93.11% 91.36% -1.75%
==========================================
Files 12 12
Lines 3237 3253 +16
==========================================
- Hits 3014 2972 -42
- Misses 223 281 +58
Continue to review full report at Codecov.
|
Thanks @MatsuuraKentaro, this looks good! I'm going to make a few small edits and then I'll go ahead and merge this. Also, I'm debating whether we should call this And I'll also add an item to the NEWS.md file that mentions this and that you contributed it. Whenever we do the next official release of CmdStanR it will get included in the News section of the CmdStanR website. |
Ok, I made a few small edits and added a few tests. I also added a comment in the documentation mentioning that this will be helpful for users of JAGS/BUGS who are familiar with coda, but I also mentioned that we do prefer the diagnostics in the posterior package and the plots in bayesplot. I mentioned that because, for example, the R-hat and effective sample size calculations in posterior use more recent (and we think improved) algorithms than the ones in coda, and bayesplot provides some HMC/NUTS specific plots that aren't available in coda but are important for Stan. But we don't want to force anyone to use bayesplot or posterior so I'm happy to have this function to make it easier to use coda for anyone who prefers that. Now let's just let the unit tests and checks run and if everything passes we can merge it. Thanks again @MatsuuraKentaro! |
Thank you very much for the minor changes, documents and tests. That's fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok all the checks are passing so I'm going to merge. Thanks again @MatsuuraKentaro
Submission Checklist
Summary
This
as_mcmc_list
function convertsCmdStanMCMC
object tomcmc.list
object in thecoda
package. It is only a data conversion function, and it facilitates the transition to Stan for BUGS and JAGS users who are used tomcmc.list
.Copyright and Licensing
Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
Kentaro Matsuura
By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses: