getHazardInfluenceCurve: Extract Influence Curve for Estimated Hazard Functions

View source: R/hazards_influence_curve.R

getHazardInfluenceCurveR Documentation

Extract Influence Curve for Estimated Hazard Functions

Description

This function computes the hazard-based efficient influence curve at the final estimate of the fluctuated cause-specific hazard functions and evaluates it on the observed data. The influence function is computed on the long-format data but is subsequently summed over all timepoints for each observation and the function returns a new short-form data set with columns added corresponding to the sum over all timepoints of the estimated efficient influence function evaluated at that observation.

Usage

getHazardInfluenceCurve(
  dataList,
  dat,
  allJ,
  ofInterestJ,
  nJ,
  uniqtrt,
  t0,
  verbose,
  att,
  ...
)

Arguments

dataList

A list of data.frame objects. See the documentation of makeDataList for more information.

dat

A data.frame in short form. See the documentation of makeDataList for more information.

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.

t0

The timepoint at which survtmle was called to evaluate.

verbose

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

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.

...

Other arguments. Not currently used.

Value

An object of class data.frame with columns D.jX.zZ added for each value of X in ofInterestJ and each value of Z in uniqtrt. These are the sum over all timepoints of the estimated efficient influence function evaluated at that observation.


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