View source: R/dataConstruction_workflow.R
| setExposure | R Documentation |
The exposure dataset specifies all follow-up time intervals during which a study subject is exposed to an exposure level other than a reference level specified by the analyst. For each episode of exposure to a non-reference level, the table specifies:
a unique subject identifier,
the exposure episode start date,
the exposure episode end date, and
the non-reference exposure level (required only when the exposure is not binary).
setExposure(data, IDvar, start_date, end_date, exp_level = NA, exp_ref = NA)
data |
|
IDvar |
|
start_date |
|
end_date |
|
exp_level |
|
exp_ref |
|
expData object
expData
exposure <- setExposure(expDT, "ID", "startA", "endA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.