mjskay / tidybayes

Bayesian analysis + tidy data + geoms (R package)
http://mjskay.github.io/tidybayes
GNU General Public License v3.0
710 stars 59 forks source link

Unexpected output of spread_draws #324

Closed giac01 closed 2 weeks ago

giac01 commented 3 weeks ago

Hi,

I'm having an issue with using spread_draws to extract draws from a random slope coefficient in brms model. It is giving me twice the number of draws I expect, and the second half seem not correspond to the correct coefficient.

I've attached my code output here: https://bignardi.co.uk/MiscellaneousRCode/99_spreaddraws_confusion.html

It might well be a mistake i've made, but i'm trying to understand what i've done wrong so I can avoid making mistakes with this in future.