R0 is calculated using various epidemiological models and depends on several factors, including the infectious period, the mode of transmission, and the contact rate within the population. Mathematical models often use data from initial outbreaks to estimate R0.