Health-care-associated methicillin-resistant Staphylococcus aureus (MRSA) infection may cause increased hospital stay, or sometimes death. Quantifying this effect is complicated because the exposure is time dependent: infection may prolong hospital stay, while longer stays increase infection risk. In this paper, the
