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

srs sampling w/ replacement #26

Open
paul-vdb opened this issue Sep 20, 2019 · 1 comment
Open

srs sampling w/ replacement #26

paul-vdb opened this issue Sep 20, 2019 · 1 comment
Labels

Comments

@paul-vdb
Copy link

In srs,point samples are drawn from ind <- ceiling(runif(n, 0, N)). There is not an option to choose without vs with replacement but inherently this implies for sampling with replacement. Sampling points in WA.cities n = 50 results in a fair chance of repeated samples being added. Exported data treats these as "new" samples and is confusing in the output until digging deeper. If intentional please make it obvious and if not please add a catch for replacement to achieve n actual samples. Thanks!

@tmcd82070
Copy link
Owner

True. A good point. Sampling is with replacement when applied to point resources, which are finite. Best thing to do will be to add an option to select with or without replacement. And, need to make this explicit in the xxx.point sampling method documentation.

@tmcd82070 tmcd82070 added the bug label May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants