Open rpruim opened 7 years ago
with apologies for my ignorance, I wonder if simply writing a broom::tidy
method for coeftabs would be more useful. In an ideal world things should be set up so that users don't have to mess around accessing slots directly/shouldn't need to care about how they are organized ...
And in terms of preparing stuff for plotting, rethinking could just use our (Stan dev team's) bayesplot package similarly to how rstanarm and brms use it. Richard, if you're interested in that let me know and I can help.
On Mon, Mar 13, 2017 at 1:36 PM Ben Bolker notifications@github.com wrote:
with apologies for my ignorance, I wonder if simply writing a broom::tidy method for coeftabs would be more useful. In an ideal world things should be set up so that users don't have to mess around accessing slots directly/shouldn't need to care about how they are organized ...
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rmcelreath/rethinking/issues/71#issuecomment-286183968, or mute the thread https://github.com/notifications/unsubscribe-auth/AHb4Q0s0OL--Fw667WXSIKhs2tHkmPKKks5rlX6tgaJpZM4MbN3C .
My complaints about the internal organization are directed toward creating things like broom::tidy()
or fortify()
, or as.data.frame()
etc., not because I think end users should be accessing slots directly (they should not need to if all of the appropriate accessors are exported from the package). I wanted to write one of these for my students this morning, but realized that it would be much simpler if the underlying data were stored differently, but I didn't have time to figure out whether the changes I would like to make would have cascading effects elsewhere. So I just created a 1-off plot to show the potential downsides of plotting all the coefficients on the same scale.
@jgabry, does it make sense to use bayesplot
for the rethinking::map()
models or is that only a solution for the map2stan()
models?
Mostly map2stan, although some of the bayesplot functionality could be useful for map.
On Mon, Mar 13, 2017 at 3:25 PM Randall Pruim notifications@github.com wrote:
@jgabry https://github.com/jgabry, does it make sense to use bayesplot for the rethinking::map() models or is that only a solution for the map2stan() models?
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/rmcelreath/rethinking/issues/71#issuecomment-286215966, or mute the thread https://github.com/notifications/unsubscribe-auth/AHb4Q2hNEFzyEo2jiFIvlkgZw5nPKI34ks5rlZgLgaJpZM4MbN3C .
In particular,
@coefs
can contain SE information (but only ifse = TRUE
), and@se
has lots ofNA
s whense = TRUE
. Seems like it would be better to keep the coefficient estimates in@coefs
and the standard errors in@se
and paste things together as needed elsewhere, perhaps keeping a flag to indicate whether standard errors were requested.Labeling is broken for
@se
whense = FALSE