createControlIntervalSettings: Create control interval settings

View source: R/CovariateSettings.R

createControlIntervalSettingsR Documentation

Create control interval settings

Description

Create control interval settings

Usage

createControlIntervalSettings(
  includeEraIds = NULL,
  excludeEraIds = NULL,
  start = 0,
  startAnchor = "era start",
  end = 0,
  endAnchor = "era end",
  firstOccurrenceOnly = FALSE
)

Arguments

includeEraIds

One or more IDs of variables in the SccsData object that should be used to construct this covariate. If no IDs are specified, all variables will be used.

excludeEraIds

One or more IDs of variables in the [SccsData] object that should not be used to construct this covariate.

start

The start of the control interval (in days) relative to the startAnchor.

startAnchor

The anchor point for the start of the control interval. Can be "era start" or "era end".

end

The end of the control interval (in days) relative to the endAnchor.

endAnchor

The anchor point for the end of the control interval. Can be "era start" or "era end".

firstOccurrenceOnly

Should only the first occurrence of the exposure be used?

Details

Create an object specifying how to create a control interval for the self-controlled risk interval (SCRI) design.

Value

An object of type ControlSettings.


OHDSI/SelfControlledCaseSeries documentation built on Sept. 7, 2024, 8:24 a.m.