Learn R Programming

curesurv (version 0.1.2)

var_TTC_wei: var_TTC_wei function

Description

Calculates the variance of TTC with delta method. The expression of this variance is expressed as Var(TTC) = (dTTC/dtheta)Var(theta)(dTTC/dtheta)^T where Var(theta) is the variance-covariance matrix of theta.

Usage

var_TTC_wei(
  object,
  z_ucured = z_ucured,
  z_pcured = z_pcured,
  epsilon = epsilon,
  TTC
)

Arguments

object

ouput from a model implemented in curesurv

z_ucured

covariates matrix acting on survival function of uncured

z_pcured

covariates matrix acting on cure proportion

epsilon

value fixed by user to estimate the TTC \(\text{Pi}(t)\geq (1-\epsilon)\). By default \(\epsilon = 0.05\).

TTC

time to cure previously calculated using TTC_wei