calc_phi_probs: Calculate FOI log probability

View source: R/infection_model_likelihoods.R

calc_phi_probsR Documentation

Calculate FOI log probability

Description

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.

Usage

calc_phi_probs(phis, infection_history, age_mask, sample_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 single log probability

See Also

Other priors: calc_phi_probs_indiv(), calc_phi_probs_spline(), 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.