Skip to content

Select samples for experiment #39

@llrs

Description

@llrs

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions