sampleTimeVaryingCovariates function

Sample time-varying covariates.