Learn R Programming

curesurv (version 0.1.2)

dlogpdtheta_wei: dlogpdtheta_wei function

Description

Produce partial derivatives of log(p(t)) the logarithm of the probability to be cured

Usage

dlogpdtheta_wei(
  z_pcured = z_pcured,
  z_ucured = z_ucured,
  x = x,
  theta,
  cumLexctopred
)

Arguments

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

theta

estimated parameters of the cumulative excess hazard from a mixture model using curesurv and uncured survival following a Weibull distribution

cumLexctopred

a pre-prediction parameter obtained with cumLexc_alphaweibull_topred