Analyzing an Emulated Trial in Infectious Diseases