convert_mat_to_trans_cal.Rd
This function converts dose and sero matrices into a transmission calendar based on the provided immune profile.
convert_mat_to_trans_cal(
all_dose,
all_sero,
cal_vhr,
daily_uptake_vhr,
cal,
daily_uptake,
immune_profile
)
A matrix representing all doses.
A matrix representing all sero values.
A calendar matrix for very high risk (VHR) individuals.
A matrix representing daily uptake for VHR individuals.
A calendar matrix for the general population.
A matrix representing daily uptake for the general population.
A list containing immune profiles for VHR and general population.
A list containing updated dose
and sero
matrices.
The function first creates a VHR calendar if the immune profile for VHR is not "none". It then calculates the sero and dose models using the get_sero_dose_cals
helper function. The results are stored in the all_sero
and all_dose
matrices.
The get_sero_dose_cals
function calculates the dose and sero models based on the provided calendar, daily uptake, and immune profile. It considers different sero delays and coverage values.