resplab / epicR

R package for the Evaluation Platform in COPD (EPIC), an agent-based whole-disease model for projection of health and economic outcomes and COPD interventions.
11 stars 11 forks source link

Additional functionality for closed_cohort needed #125

Closed KateJohnson closed 1 year ago

KateJohnson commented 1 year ago

We need to modify the C code so that when closed_cohort=1 in input.R, outputs are only collected for agents who are in the cohort. I did this for case detection by creating an agent variable (*ag).cohort, which =1 when the agent received case detection. I then multiplied everything in output_ex by (*ag).cohort. See: https://github.com/KateJohnson/epicR/blob/closed_cohort/src/model.WIP.cpp

We could define a variable in C based on input$global_parameters$closed_cohort, but this would not allow for selection into the cohort after baseline.

KateJohnson commented 1 year ago

This is not required for Rachaels' budget impact, so it's low priority, but I'm tracking it here