Learn R Programming

curesurv (version 0.1.2)

var_pt_cure_wei: var_pt_cure_wei function

Description

Variance of p(t) with delta method. Var(p(t)) = (dp/dtheta)Var(theta)(dp/dtheta)^T where Var(theta) is the variance-covariance matrix of theta.

Usage

var_pt_cure_wei(
  object,
  z_pcured = z_pcured,
  z_ucured = z_ucured,
  x = x,
  cumLexctopred
)

Arguments

object

ouput from mixture cure 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

cumLexctopred

pre prediction obtained with cumLexc_alphaweibull_topred