duringInterval: Function that creates an eventAperture an opening where an...

View source: R/window.R

duringIntervalR Documentation

Function that creates an eventAperture an opening where an event can occur relative to the index event

Description

Function that creates an eventAperture an opening where an event can occur relative to the index event

Usage

duringInterval(
  startWindow,
  endWindow = NULL,
  restrictVisit = FALSE,
  ignoreObservationPeriod = FALSE
)

Arguments

startWindow

the starting window where an event can occur

endWindow

the end window of where an event can occur. This parameter is optional

restrictVisit

a logical toggle specifying whether the event should occur on the same visit

ignoreObservationPeriod

a logical toggle specifying whether we can consider events outside the observation period

Value

An event aperture that can be used in a Capr cohort definition


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