R/infection_model_likelihoods.R
calc_phi_probs_spline.RdVersion of FOI prior that calculates a seasonal spline such that the FOI in a given time point (month) comes from this spline term
calc_phi_probs_spline(foi, knots, theta, infection_history, age_mask)vector of force of infections per year
vector of knots for the spline
vector of theta parameters for spline
the matrix of infection histories
the age mask vector as returned by create_age_mask
a vector of log probabilities for each individual