| LtAtDataInst | R Documentation |
Class that defines the specifications for constructing an LtAt dataset and the dataset itself using an instant exposure dataset.
R6Class object.
LtAtDataInst object
data:data.table containing
the LtAt dataset. NULL by default before construction.
cohort_data:cohortData specifying the cohort dataset.
exp_data:expData specifying the time-varying exposure dataset.
Its IDvar field must contain the same value as that of the
cohort_data (i.e.,
the same column name must be used for the ID column of the exposure and cohort
datasets). The unique subject identifiers in the data field of exp_data
must be a subset of those founds in the data field of cohort_data (i.e.,
all IDs in the exposure dataset must also be present in the cohort dataset.)
An exposure measurement stored in the data field of exp_data
will be ignored
if its date is either strictly before the subject's index date stored in the
data field of cohort_data or strictly after the subject's end of
follow-up date stored in the data field of cohort_data (i.e., only
exposure measurements collected between the start and end of follow-up will be
retained).
cov_data:a list of timeDepCovData that
specifies time-varying covariate(s). Each element of the list must have a distinct
value stored in its L_name field and this value must also be found in the
L0 field of cohort_data (i.e., time-varying covariates cannot have
the same name and must have their baseline measurements stored in the cohort dataset).
The IDvar field of each element timeDepCovData of cov_data
must contain the same value as
that of the cohort_data (i.e.,
the same column name must be used for the ID column of each covariate dataset and
that of the cohort dataset). The unique subject identifiers in the data
field of each element
timeDepCovData of cov_data
must be a subset of those founds in the data field of cohort_data (i.e.,
all IDs in a covariate dataset must also be present in the cohort dataset.)
A covariate measurement stored in the data field of an element
timeDepCovData
of cov_data will be ignored
if its date is either strictly before the subject's index date stored in the
data field of cohort_data or strictly after the subject's end of
follow-up date stored in the data field of cohort_data. (i.e., only
covariate measurements collected between the start and end of follow-up will be
retained).
LtAtStructuR::LtAtData -> LtAtDataInst
new()LtAtDataInst$new()
copyLtAtData()LtAtDataInst$copyLtAtData(LtAtObject)
construct()LtAtDataInst$construct(time_unit, ...)
setAlgoOptions()LtAtDataInst$setAlgoOptions(time_unit, ...)
assignAC()LtAtDataInst$assignAC()
assignL()LtAtDataInst$assignL()
cleanUp()LtAtDataInst$cleanUp()
clone()The objects of this class are cloneable with this method.
LtAtDataInst$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.