Given 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, strain_mask)

Arguments

phis

a vector of FOIs

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