era: Create a Cohort Era class object

View source: R/cohort.R

eraR Documentation

Create a Cohort Era class object

Description

The Cohort Era depicts the time span of the cohort. The Censor Window includes the date window for which we register events. The Collapse Settings identify the era padding between events before exiting a cohort.

Usage

era(eraDays = 0L, studyStartDate = NULL, studyEndDate = NULL)

Arguments

eraDays

a numeric that specifies the number of days for the era padding

studyStartDate

a date string that specifies the starting date of registration

studyEndDate

a date string that specifies the end date of registration

Value

a S4 CohortEra class object defining the eras of the cohort definition


OHDSI/Capr documentation built on Feb. 20, 2025, 4 a.m.