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

Allow users to perform optimisation (rather than sampling) #73

Open ben18785 opened 1 year ago

ben18785 commented 1 year ago

Users may want to perform a quick optimisation to check their fit to data rather than wait for MCMC sampling. I'd propose something like:

fit <- do_optimisation()
if(is_sampling == TRUE)
  fit <- sampling(init=get_optim_values(fit))

return(fit)

This is linked to #63