Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support for weighted draws #262

Open
n-kall opened this issue Feb 4, 2021 · 0 comments
Open

Feature request: support for weighted draws #262

n-kall opened this issue Feb 4, 2021 · 0 comments

Comments

@n-kall
Copy link

n-kall commented Feb 4, 2021

I think it could be useful to have a way to specify weights for draws for functions like mcmc_hist and mcmc_dens. This way when dealing with weighted draws (e.g. a posterior::draws_array object with weights from importance sampling), the same functions could be used as for raw mcmc draws without needing to resample.

As far as I understand, geom_density and geom_histogram already have aesthetic mapping for weights as an option, so it might be possible to use this directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant