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

Upgrade time-varying models using chunks and specifying prior parameters #171

Closed ntorresd closed 6 months ago

ntorresd commented 6 months ago

Currently, one value of the force-of-infection is estimated for every year in the time spanned by the serosurvey.

data(chagas2012)
serodata <- prepare_serodata(chagas2012)
seromodel <- fit_seromodel(serodata, foi_model = "tv_normal")

image

or explicitly specifying the chunk structure:

chunks <- rep(c(1, 2, 3, 4, 5), c(10, 10, 15, 15, max(serodata$age_mean_f)-50))
seromodel <- fit_seromodel(serodata, foi_model = "tv_normal", chunks = chunks)

image

tv_normal_log model

fit_seromodel( serodata = serodata, foi_model = "tv_normal", foi_location = -6, foi_scale = 4, ... )



* **Other information**: