Description Usage Arguments Details Value
View source: R/GetExposureStatus.R
Get the exposure status for cases (and controls).
| 1 2 3 4 5 6 7 8 9 | getExposureStatus(
  subjects,
  caseCrossoverData,
  exposureId,
  firstExposureOnly = FALSE,
  riskWindowStart = -30,
  riskWindowEnd = 0,
  controlWindowOffsets = c(-60)
)
 | 
| subjects | A data frame as generated using the
 | 
| caseCrossoverData | An object of type  | 
| exposureId | The identifier of the exposure. | 
| firstExposureOnly | Should only the first exposure per subject be included? | 
| riskWindowStart | The start of the risk window (in days) relative to the index date. This number should be non-positive. | 
| riskWindowEnd | The end of the risk window (in days) relative to the index date. This number should be non-positive. | 
| controlWindowOffsets | Offsets in days of the control windows relative to the case window. | 
This function determines the exposure status for a give, exposure ID in various windows relative to the index date.
A data frame with these columns:
The person ID
The index date
Is the person a case or a control?
The ID linking cases and controls in a matched set
Is this a case window (as opposed to a control window)?
Was the person exposed during the window?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.