calc_phi_probs_spline: Calculate FOI from spline - INACTIVE

View source: R/infection_model_likelihoods.R

calc_phi_probs_splineR Documentation

Calculate FOI from spline - INACTIVE

Description

Version of FOI prior that calculates a seasonal spline such that the FOI in a given time point (month) comes from this spline term

Usage

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

Other priors: calc_phi_probs_indiv(), calc_phi_probs(), create_prob_shifts(), find_beta_prior_mode(), find_beta_prior_with_mean_var(), find_beta_prior_with_mean(), fit_beta_prior(), fit_normal_prior(), inf_mat_prior(), infection_history_prior(), prob_shifts()


seroanalytics/serosolver documentation built on Dec. 14, 2024, 5:33 a.m.