epiverse-trace / serofoi

Estimates the Force-of-Infection of a given pathogen from population based sero-prevalence studies
https://epiverse-trace.github.io/serofoi/
Other
17 stars 4 forks source link

function extract_seromodel_summary() #97

Closed yungwai-chan closed 4 days ago

yungwai-chan commented 1 year ago

Currently the function summarise the information of the serology survey and the convergence of the model.

It will be really useful to have the FOI summarised, for instance as median and with 95% confidence bounds.

ntorresd commented 4 days ago

You can do this with the current development version of the package by means of summarise_central_estimate():

# constant model
foi_summary <- summarise_central_estimate(
      seromodel = seromodel,
      serosurvey = serosurvey,
      alpha = alpha,
      par_name = "foi",
      central_estimate_digits = central_estimate_digits
    )

# age or time varying models
foi_summary <- summarise_central_estimate(
      seromodel = seromodel,
      serosurvey = serosurvey,
      alpha = alpha,
      par_name = "foi_vector",
      central_estimate_digits = central_estimate_digits
    )

You can do this as well for the seroreversion rate in case you use a model that estimates it.