Version 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)

Arguments

foi

vector of force of infections per year

knots

vector of knots for the spline

theta

vector of theta parameters for spline

infection_history

the matrix of infection histories

age_mask

the age mask vector as returned by create_age_mask

Value

a vector of log probabilities for each individual

See also