Closed mjskay closed 5 years ago
(also, not sure if you're doing it just to be explicit for pedagogical reasons, but if not, the default for point_interval
in geom_halfeyeh is now median_qi
, so you don't have to specify it if you don't want to)
These are good ideas! I especially like your first version; though longer, it requires fewer packages. Adopting this is really just me sitting down and learning more about tidybayes. Up to this point, I've primarily restricted myself to a few of its summary and plotting functions. As to streamlining my geom_halfeyeh()
code, I suspect the unnecessary point_interval
argument is just a carryover from copy/pasting older code. I think by the time users get to the end of chapter 14, that verbose variant won't do much by way of pedagogy.
Chapters 12—14 now reflect some of these suggestions. Thanks again!
Love the project and also the recent post on meta-analysis. As I was reading through that post, it occurred to me that you could potentially simplify some of the parameter name munging by using
tidybayes::spread_draws
,tidybayes::gather_draws
, ortidybayes::add_fitted_draws
. E.g., this plot from your blog post on meta-analysis:You could save the work munging names and lining up the global intercept with the group-level offsets by using
tidybayes::spread_draws
:Or you could treat it as a problem of generating transformed linear predictors over a prediction grid by using
tidybayes::add_fitted_draws
along withmodelr::data_grid
:Let me know what you think of approaches like that --- I wasn't sure if you had pedagogical reasons for doing it a particular way. If you're amenable to changes like that, I'm happy to file pull requests in that direction (contingent on me having time for things, of course :) ).