Duration of viral shedding and risk factors