Learn R Programming

curesurv (version 0.1.2)

pi_ic_log_wei: pi_ic_log_wei function

Description

calculates the confidence intervals of the cure proportion pi using variances of log(pi) by delta method

Usage

pi_ic_log_wei(
  object,
  z_pcured = z_pcured,
  z_ucured = z_ucured,
  x,
  level,
  cumLexctopred,
  Dpi
)

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

Dpi

Partial derivative of Pi calculated by dpidtheta_wei function