simPreg - Simulate Pregnancy Data with Time-Varying Exposure
Simulates pregnancy data in a time-to-event framework,
allowing a time-varying exposure. Default parameters for
gestational length and exposure timing are provided but may
also be user-specified. Users can further specify hazard ratios
for spontaneous and non-spontaneous live birth and late
miscarriage/stillbirth following exposure.