timeOrder_baseline: timeOrder_baseline

View source: R/medltmle_HelperFun.R

timeOrder_baselineR Documentation

timeOrder_baseline

Description

Function to group baseline covariates according to time ordering, in case there is time dependence.

Usage

timeOrder_baseline(data, A)

Arguments

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.

Value

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.


podTockom/medltmle documentation built on Aug. 9, 2022, 9:32 a.m.