Matching Methods for Obtaining Survival Functions to Estimate the Effect of a Time-Dependent Treatment