Epidemiologists collect data through various methods such as surveillance systems, cohort studies, case-control studies, and randomized controlled trials. This data is then analyzed using statistical software to calculate risk measures. For example, in a cohort study, the incidence rate can be calculated by dividing the number of new cases by the total number of person-time units at risk.