athowes / multi-agyw

Spatio-temporal estimates of HIV risk group proportions for AGYW across 13 priority countries in sub-Saharan Africa
https://athowes.github.io/multi-agyw
MIT License
2 stars 2 forks source link

Full pipeline with samples rather than point estimates #82

Closed athowes closed 2 years ago

athowes commented 2 years ago

This is the code in Naomi that draws the samples from the model: https://github.com/mrc-ide/naomi/blob/master/R/tmb-model.R#L630-L691 This is the code that takes the quantiles across the samples: https://github.com/mrc-ide/naomi/blob/master/R/outputs.R#L23-L188 In Naomi, the aggregation is done in C++ code by creating a sparse matrix that specifies the aggregation.