Closed ntorresd closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
5a0400c
) 76.04% compared to head (9d4fbb7
) 76.17%. Report is 4 commits behind head on main.:exclamation: Current head 9d4fbb7 differs from pull request most recent head 8c6f862. Consider uploading reports for the commit 8c6f862 to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR corrects the data simulation functions
get_sim_probability
,get_sim_n_seropositive
andgenerate_sim_data
for them to build the simulated data based on the desired age structure of the survey and the desired sample sizes for each age group.The use of
generate_sim_data
is exemplified by:which generates a serosurvey with random sample sizes for each specified age group [1, ..., 50] (see image below).