updateVariables: Update TMLEs for Hazard to Cumulative Incidence

View source: R/updateVariables.R

updateVariablesR Documentation

Update TMLEs for Hazard to Cumulative Incidence

Description

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.

Usage

updateVariables(
  dataList,
  allJ,
  ofInterestJ,
  nJ,
  uniqtrt,
  ntrt,
  t0,
  att,
  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.

att

A boolean indicating whether to compute the ATT estimate, instead of treatment specific survival curves. This option only works with two levels of trt that are labeled with 0 and 1.

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.


benkeser/survtmle documentation built on Nov. 23, 2023, 4:45 a.m.