mjskay / tidybayes

Bayesian analysis + tidy data + geoms (R package)

Home Page:http://mjskay.github.io/tidybayes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set seed in sample_draws

JackCaster opened this issue · comments

I would like to set the seed in sample_draws to make the sampling reproducible.

I believe we could add set.seed(SEED) right before

draw_sample = sample(unique(draw_full), n)

Would this be a good addition to the package?

Yeah that would be helpful, using a seed parameter similar to that in predicted_draws(). If you're interested in making a pull request for the change I'd be fine with that!

Sounds good. I'll have a look over the weekend