Changed case series Poisson and time-varying Cox models