שליחת רשומה: Estimating time-varying effects for overdispersed recurrent events data with treatment switching