Supporting multiple interventions
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start with set_intervention_ach(), generate_setting_intervention_switches(), and calculate_efficacy_from_ach(); the issue says these currently store and read a single intervention. Review the ACH framework introduced in #142 and compare the indexing approach in malariasimulation’s R/mda_parameters.R. Done means a simulation can use multiple interventions per setting, with indexing, coverage behavior, joint coverage, and parameter naming resolved.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Work in progress on branch `multiple-interventions'.
The ACH intervention framework (added in #142) currently supports one intervention per setting (workplace, school, leisure, household, or joint). Generalising it to several interventions in a single simulation raises the points below, collected from review of #142.
Points to address
- Single intervention stored as a length-1 list.
set_intervention_ach()wraps the intervention inlist(), and downstream code readsinterventions[[1]](e.g.$coverageingenerate_setting_intervention_switches(), and incalculate_efficacy_from_ach()). Callingset_intervention_ach()twice for the same setting overwrites the first intervention rather than adding to it. - Indexing interventions. Interventions need a way to be identified and looked up. Options: key them by the
namefrommake_intervention(), or use a user-assigned index, as in malariasimulation: https://github.com/mrc-ide/malariasimulation/blob/master/R/mda_parameters.R - Coverage across interventions. Decide whether coverage of multiple interventions is clumped (same locations covered) or independent.
- Joint coverage.
intervention_joint_coverageis taken from a single intervention; check it behaves correctly once there is more than one. - Parameter naming. The
intervention_<setting>_<param>convention may not scale to several interventions. One option isaqi_intervention_<setting>_<param>; this needs revisiting as part of this work.
From Tom: "In malariasimulation, where multiple interventions of a similar type are used the user assigns them an index which then helps the internal code work through this kind of issue (see https://github.com/mrc-ide/malariasimulation/blob/master/R/mda_parameters.R if interested). Here we have the intervention name from make_intervention which feels like it should be a useful way to resolve the multiple intervention issue."
- Lingua principale
- R
- Stelle
- 8
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di petal-code/helios
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
petal-code/helios#174 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
petal-code/helios#173 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
petal-code/helios#166 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
petal-code/helios#161 ·
-
run_simulation() is not reproducible from seed: the leisure draw uses dqrng's own RNGForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
petal-code/helios#157 · 1 commento ·
Tutte le issue di petal-code/helios
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
atomashevic/transforEmotion#46 ·
I maintainer di solito rispondono entro 1 giorno
-
Error when applying yearCohorts() to a cohort created with generateTargetDenominatorCohortSet()Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
OHDSI/CohortConstructor#777 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nmfs-ost/stockplotr#445 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Use renv::installAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
UCL-ARC/r-intermediate-good-practices#37 ·
I maintainer di solito rispondono entro 2 giorni