convert_efficacies.Rd
This function takes an immune profile and converts it into a list of efficacies for different products.
convert_efficacies(immune_profile)
A list containing immune profile information. It should have the following structure:
A list with element b
representing the efficacy for very high risk (VHR) individuals.
A list with elements b
and product
representing the efficacy and product type for mass immunization. The product
can be "lav", "mab", or "mat".
A list with the following elements:
Efficacy for monoclonal antibodies (MAB) in very high risk individuals.
Efficacy for monoclonal antibodies (MAB) in mass immunization.
Efficacy for live attenuated vaccines (LAV) in mass immunization.
Efficacy for maternal antibodies (MAT) in mass immunization.
The function initializes the efficacy list with zeros. It then checks if the immune profile contains efficacy values for VHR and mass immunization and updates the efficacy list accordingly.