Learn R Programming

curesurv (version 0.1.2)

sn_ic_wei: sn_ic_wei function

Description

calculates the confidence intervals of the net survival (Sn(t)) using variances of Sn(t). In this formula, the variance of net survival is obtained using the expression Var(Sn(t)) = (dSn/dtheta)Var(theta)(dSn/dtheta)^T where Var(theta) is the variance-covariance matrix of theta.

Usage

sn_ic_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

pre prediction obtained with cumLexc_alphaweibull_topred

Dsn

Partial derivative of Sn calculated by dsndtheta_wei function