Learn R Programming

curesurv (version 0.1.2)

TTC_ic_log_wei: TTC_ic_log_wei function

Description

calculates the confidence interval of the time TTC using delta method by assuming normality on log scale of TTC. IC = exp(log(TTC) +/- z*sqrt(var(log(TTC)))), where Var(log(TTC)) = (dlog(TTC)/dtheta)Var(theta)(dlog(TTC)/dtheta)^T.

Note that this function is for mixture cure model with Weibull distribution considered for uncured patients.

Usage

TTC_ic_log_wei(
  object,
  z_pcured = z_pcured,
  z_ucured = z_ucured,
  epsilon = 0.05,
  level,
  TTC = NULL,
  Dttc = NULL
)

Arguments

object

An object of class curesurv.

z_pcured

covariates matrix acting on cure proportion

z_ucured

covariates matrix acting on survival function of uncured

epsilon

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

level

1-alpha/2-order quantile of a normal distribution

TTC

time to cure calculated by TTC_wei

Dttc

partial derivates of TTC by dTTCdtheta_wei