Covariate and survival time generation

This function generates time-varying covariates and uses them to
generate survival times.