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

Add age-varying normal model and change prior parameters specification #187

Closed ntorresd closed 6 months ago

ntorresd commented 6 months ago

Add av_normal model without seroreversion and change initial prior parameters input specification in fit_seromodel.

Currently, the initial values of prior's parameters are specified in fit_seromodel as (e.g.):

fit_seromodel(
  serodata = serodata,
  foi_model = "tv_normal",
  foi_location = 0.1,
  foi_scale = 0.03,
)

Now, it is specified as:

seromodel <- fit_seromodel(
  serodata = serodata,
  foi_model = "tv_normal",
  foi_parameters = list(
    foi_location = 0.1,
    foi_scale = 0.05
  )
)

Besides foi_model = "av_normal" is now a valid option corresponding to an age-varying model with normal for the force-of-infection. See changes in NEWS.md for further details.