A helper function that maps hazard estimates into estimates of cumulative incidence and updates the "clever covariates" used by the targeted minimum loss-based estimation fluctuation step.

updateVariables(
  dataList,
  allJ,
  ofInterestJ,
  nJ,
  uniqtrt,
  ntrt,
  t0,
  verbose,
  ...
)

Arguments

dataList

A list of data.frame objects.

allJ

Numeric vector indicating the labels of all causes of failure.

ofInterestJ

Numeric vector indicating ftypeOfInterest that was passed to hazard_tmle.

nJ

The number of unique failure types.

uniqtrt

The values of trtOfInterest passed to mean_tmle.

ntrt

The number of trt values of interest.

t0

The timepoint at which survtmle was called to evaluate.

verbose

A logical indicating whether the function should print messages to indicate progress.

...

Other arguments. Not currently used.

Value

The function returns a list that is exactly the same as the input dataList, but with updated columns corresponding with estimated cumulative incidence at each time and estimated "clever covariates" at each time.