Temporally Varying Relative Risks for Infectious Diseases