This method adds a programme to an RSVProgramme object, setting various attributes and creating necessary directories.

# S4 method for class 'RSVProgramme'
add_programme(object, prog_name, cal, cal_vhr, immune_profile)

Arguments

object

An object of class RSVProgramme.

prog_name

A character string representing the name of the programme.

cal

A calendar object used for the programme.

cal_vhr

A calendar object for very high-risk (VHR) groups.

immune_profile

A list containing the immune profile information.

Value

The updated RSVProgramme object with the new programme added.

Details

This function sets the programme name, checks and creates necessary directories, initializes dose and sero matrices, calculates daily uptake, converts matrices to transmission calendars, and sets various attributes in the RSVProgramme object.