
Fast Kalman log-likelihood for prevalence observations
Source:R/sird_ga_incidence.R
sird_ga_loglik_prev.RdCompiled counterpart of sird_ga_loglik() (same model and observation
equation, RK4 transition quantities).
Arguments
- theta
Named numeric vector with elements
lambda,gamma,alpha,s0,i0,r0,p,tau2(all strictly positive exceptr0, which may be zero;pin(0,1)).- y
Numeric vector of observed infectious head counts \(y_0, y_1, \ldots, y_n\) (not normalised; normalisation by
Nis performed internally, matching the \(O_N(t_k)=O(t_k)/N\) observation model of the manuscript).- N
Population size.
- Delta
Time step between consecutive observations (default
1).- nsub
RK4 steps per interval.