Calculate basic reproduction number R0
facilityR0(S, C, A, transm, initS, mgf = NULL)
A matrix of state transition rates between and removal from the susceptible states in the absence of colonized individuals
A matrix of state transition rates between and removal from the colonized states
A matrix describing transitions from susceptible to colonized states at acquisition
A vector of transmission rates from each colonized state
A vector of admission state probabilities to each susceptible state
The moment generating function characterizing the time-of-stay-dependent removal hazard
A number (R0)