Skip to contents

A synthetic dataset containing hospitalization periods for two individuals. Intended for testing how hospital stays affect drug exposure estimation in the PRE2DUP-R package.

Usage

hospitalizations_example

Format

A `data.table` with the following variables:

id

Person identifier (integer)

hospital_start

Start date of the hospitalization period (Date)

hospital_end

End date of the hospitalization period (Date)

Source

Simulated data created for package documentation.

Details

This data can be used to test how PRE2DUP-R handles inpatient periods when outpatient medications are not used.