Calculates the seasonal spline for calc_phi_probs_spline

generate_phis(foi, knots, theta, n_years, buckets, degree = 2)

Arguments

foi

vector of force of infections per year

knots

vector of knots for the spline

theta

vector of theta parameters for spline

n_years

number of years to calculate

buckets

number of buckets per year (12 for monthly, 1 for annual)

degree

degree of the spline

Value

a vector of FOIs for each time point