Add vignette sections for *_data() companion functions#439
Add vignette sections for *_data() companion functions#439ishaan-arora-1 wants to merge 3 commits intostan-dev:masterfrom
Conversation
Add usage examples in the PPC and MCMC vignettes showing how to use *_data() functions to extract pre-processed data for custom ggplot2 visualizations. Fixes stan-dev#435
Placed the section after "Providing an interface" and before "References" so it doesn't conflict with the *_data() section that PR stan-dev#439 adds at line 315.
|
Thank you @ishaan-arora-1 for your PR and working on this issue. I noticed that the checks currently fail as the object 'yrep' in your example code does not exist. Can you please have a look at this? In general it is a good idea to check whether you can build and render a modified .Rmd document locally. This allows you to catch already some errors. To build all vignettes you can run from the package root: Furthermore, to render the |
The vignette defines yrep_poisson and yrep_nb but never a bare yrep. Use yrep_nb (the better-fitting model) in the ppc_intervals_data() and ppc_stat_data() examples so the vignette renders without error.
Thanks a lot for catching that. The vignette defines yrep_poisson and yrep_nb but never a bare yrep and I should have caught that before pushing. il fix the pr, ill do as youve instructed. and i'll ask for a re-review once im done!! |
Fixes #435
Added vignette sections in the PPC and MCMC vignettes demonstrating how to use the
*_data()companion functions for building custom ggplot2 visualizations, as requested in the issue.AI Usage policy :
Parts of the documentation were generated using an llm