Advanced Epidemiology Methods For The Study Of Infectious Diseases: Examples Using Covid-19 And Hiv