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.

Package details

AuthorSiri N. Skodvin [aut, cre], Miriam Gjerdevik [ctb], Hakon K. Gjessing [ctb]
MaintainerSiri N. Skodvin <siri.skodvin@gmail.com>
LicenseMIT + file LICENSE
Version0.1.0
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("simPreg")

Try the simPreg package in your browser

Any scripts or data that you put into this service are public.

simPreg documentation built on Sept. 27, 2026, 5:06 p.m.