Computation of antiepileptic drug retention rates in the presence of a competing risk