
Maximum likelihood for SIRD-GA from daily cases and/or deaths
Source:R/sird_ga_incidence.R
sird_ga_fit_inc.RdNelder-Mead maximisation of sird_ga_loglik_inc() on an unconstrained
scale (log rates, logit probabilities and fractions), from one or several
starting points; the best optimum is polished by a final BFGS run.
Parameters not listed in free are held at their values in fixed.
Arguments
- cases, deaths, N, use, Delta, nsub
See
sird_ga_loglik_inc().- starts
A list of named lists of starting values (one per start).
- free
Character vector of parameters to estimate, a subset of
c("lambda", "gamma", "alpha", "i0", "s0", "p", "tau2", "q", "tau2_d").- fixed
Named list with values for the remaining parameters (
r0is always derived as1 - s0 - i0whens0is free, otherwise taken fromfixed).- p_max
Upper bound for
p.- maxit
Iteration limit for each Nelder-Mead run.
- hessian
Logical; return the numerical Hessian (unconstrained scale) at the optimum.