durcomp.hospitalisation: Example hospitalization events for 10 patients.

Description Usage Format

Description

A sample dataset containing hospitalization 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 represent an individual hospitalization period of a patient for whom event durations should be calculated. Besides hospitalizations, this could cover other situations where patients may not use their own supply, e.g. during incarcerations. All column names must match the format provided in this example.

Usage

1

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 May 2, 2019, 12:40 p.m.