Open s3alfisc opened 2 years ago
+1. I need this argument too. Did the author abandon the project?
duplicate of #18, but I am finally working on this: https://stubner.me/2022/12/roulette-wheel-selection-for-dqrng/
@s3alfisc, @avraam-inside: The code for weighted sampling has been finally merged. Feel free to give it a try. Version 0.3.0.2 should be on https://rstub.r-universe.dev/dqrng soon.
Amazing, will do! Thanks for notifying me =)
As noted in #52, there are some more things I need to consider w.r.t. to weighted sampling. I will have to back out that code for now in order to release the other changes that have accumulated.
Hi - first of all, thanks for a great package - it speeds up my code quite a bit!
Do you have any plans to support the
prob
argument indqrng::dqsample
? It would be super beneficial in my use case - I would like to generate so called 'Mammen weights' for a wild bootstrap, which require such an argument. Right now, I usedqsample
for some weights distributions, but have to switch back tosample()
for Mammen weights. This in turn causes some trouble with setting a 'global seed' - for Mammen weights, the user of my package would have to set it viaset.seed()
outside of the bootstrap, and for all other weights usedqrng::dqset.seed()
(but of course that is not your problem to solve!)