View source: R/infection_model_likelihoods.R
generate_phis | R Documentation |
Calculates the seasonal spline for calc_phi_probs_spline
generate_phis(foi, knots, theta, n_years, buckets, degree = 2)
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 |
a vector of FOIs for each time point
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.