Modeling the effect of time-dependent exposure on intensive care unit mortality