durcomp.hospitalisation: Example special periods for 10 patients.

durcomp.hospitalisationR Documentation

Example special periods for 10 patients.

Description

A sample dataset containing special periods (one per row) for 10 patients over a period of roughly 18 months (28 events in total). This is the appropriate format to compute event durations with the compute_event_durations function. Each row represents an individual special period of type "hospitalization" of a patient for whom event durations should be calculated. Besides hospitalizations, this could cover other situations where medication use may differ, e.g. during incarcerations or holidays. All column names must match the format provided in this example.

Usage

durcomp.hospitalisation

Format

A data frame with 28 rows and 3 variables:

ID

Integer here; patient unique identifier. Can also be string.

DATE.IN

Date here;the start of the hospitalization period, by default in the yyyy-mm-dd format.Can also be string.

DATE.OUT

Date;the end of the hospitalization period, by default in the yyyy-mm-dd format. Can also be string.


AdhereR documentation built on July 5, 2022, 5:08 p.m.