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

Document the draws_of trick to emulate rstan::extract() #955

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

jgabry
Copy link
Member

@jgabry jgabry commented Apr 22, 2024

#183

Closes #632 and closes #183

Submission Checklist

  • Run unit tests
  • Declare copyright holder and agree to license (see below)

Summary

Better documents how to obtain structured output similar to rstan::extract() using a combination of cmdstanr and posterior.

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):
Columbia University

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

@jgabry jgabry added the documentation Improvements or additions to documentation label Apr 22, 2024
Copy link
Collaborator

@andrjohns andrjohns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@andrjohns andrjohns merged commit 42a42e0 into master Apr 23, 2024
11 checks passed
@andrjohns andrjohns deleted the document-structured-draws-via-draws_of branch April 23, 2024 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add rstan::extract()-like feature to fit$draws() CmdStanMCMC object - add function get_var and get_vars
2 participants