A linear stochastic model for prevalence and incidence of nosocomial infections