Use the information from pops_to_DB
to simulate a profile from a random or given population.
The sampling is done with respect to the null hypothesis, such that the total count is adjusted accordingly.
For further details see Tvedebrink et al (2018), Section 3.1 (Simulations).
random_AIMs_profile(df, grouping = "pop", population = NULL,
n = FALSE, keep_pop = FALSE)
Database of reference profiles as returned by pops_to_DB
Simualte from pop
(default) or meta
.
The population to sample from. If NULL chosen at random.
Use numbers of samples as weights to choose the population randomly
Keep information on population