View source: R/dataConstruction_workflow.R
| setCovariate | R Documentation |
A time-dependent covariate dataset specifies all follow-up measurements of a single variable. For each subject in the cohort, the table specifies:
a unique subject identifier,
the date of the covariate measurement,
the covariate value.
setCovariate(
data,
type,
IDvar,
L_date,
L_name,
categorical,
impute = NA,
impute_default_level = NA,
acute_change = FALSE
)
data |
|
type |
|
IDvar |
|
L_date |
|
L_name |
|
categorical |
|
impute |
|
impute_default_level |
|
acute_change |
|
timeDepCovData object
timeDepCovData
covariate1 <- setCovariate(a1cDT, "sporadic", "ID", "A1cDate", "A1c",
categorical = FALSE)
covariate2 <- setCovariate(egfrDT, "sporadic", "ID", "eGFRDate", "eGFR",
categorical = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.