View source: R/medltmle_HelperFun.R
timeOrder_baseline | R Documentation |
Function to group baseline covariates according to time ordering, in case there is time dependence.
timeOrder_baseline(data, A)
data |
data.frame object containing all the baseline covariates and possibly an exposure. |
A |
Numeric value indicating the column number of exposure. Must be within (1,ncol(data)) range. |
Returns data with set exposure A and ordered baseline covariates. All baseline covariates before A are W1, whereas all after A are W2 covariates. This part is necessary later for TMLE fluctuation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.