Learn R Programming

curesurv (version 0.1.2)

sn_ic_log_wei: sn_ic_log_wei function

Description

calculates the confidence intervals of the net survival (Sn(t)) using variances of log(Sn(t)). In this formula, the variance of net survival is obtained using delta method at the scale of log of net survival, and with the expression Var(log(Sn(t))) = (dlog(Sn)/dtheta)Var(theta)(dlog(Sn)/dtheta)^T; the Var(theta) is the variance-covariance matrix of theta (estimated parameters).

Usage

sn_ic_log_wei(
  object,
  z_pcured = z_pcured,
  z_ucured = z_ucured,
  x,
  level,
  cumLexctopred,
  Dsn
)

Arguments

object

ouput from a model implemented in curesurv

z_pcured

covariates matrix acting on cure proportion

z_ucured

covariates matrix acting on survival function of uncured

x

time at which the estimates are predicted

level

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

cumLexctopred

a pre prediction obtained with cumLexc_alphaweibull_topred

Dsn

Partial derivative of Sn calculated by dsndtheta_wei function