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

Select samples for experiment #39

Open
llrs opened this issue Mar 22, 2023 · 0 comments
Open

Select samples for experiment #39

llrs opened this issue Mar 22, 2023 · 0 comments

Comments

@llrs
Copy link
Owner

llrs commented Mar 22, 2023

It wold be nice to have something to select the samples from a cohort so that they are leveled and without unwanted stratification (aka, all the boys in one class and all the girls in another class, or all the women of certain age vaccinated and all the men of the same age not vaccinated):

Something like:

i <- select_samples(info, var = c("age", "sex", "classroom"), n = 40)
i
## [1]  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

Where i are the rows of the samples to use.
It would need to check that age and sex are balanced, not sure if this is related to extreme_cases but not totally as it should check that within those variables they are not extreme, or show if there is a stratification or not.

This might be related to design the experiment not to batches, but could be also relevant for follow up studies or reusing samples from previous studies (this came up in the EPIVIRCO study)

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