addDeathDate | R Documentation |
Add date of death for individuals. Only death within the same observation period than 'indexDate' will be observed.
addDeathDate(
x,
indexDate = "cohort_start_date",
censorDate = NULL,
window = c(0, Inf),
deathDateName = "date_of_death",
name = NULL
)
x |
Table with individuals in the cdm. |
indexDate |
Variable in x that contains the window origin. |
censorDate |
Name of a column to stop followup. |
window |
window to consider events over. |
deathDateName |
name of the new column to be added. |
name |
Name of the new table, if NULL a temporary table is returned. |
table x with the added column with death information added.
cdm <- mockPatientProfiles()
cdm$cohort1 %>%
addDeathDate()
mockDisconnect(cdm = cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.