We used a stratified extended Cox model to examine the association between the time to the severe event and covariates including birthweight , with breastfeeding status as a time-dependent covariate .