R/infection_model_likelihoods.R
calc_phi_probs_indiv.RdGiven a vector of FOIs for all circulating years, a matrix of infection histories and the vector specifying if individuals were alive or not, returns the log probability of the FOIs given the infection histories.
calc_phi_probs_indiv(phis, infection_history, age_mask, sample_mask)a vector of FOIs
the matrix of infection histories
the age mask vector as returned by create_age_mask
the sample mask vector giving the last possible infection-time index for each individual
a vector of log probabilities, one for each individual