Nothing
#' @title varexhaz_adtneh2 function
#'
#' @description variance of excess hazard in non-mixture cure model with
#' distribution "tneh".
#'
#' @param object ouput from a model implemented in curesurv
#'
#' @param z_alpha Covariates matrix acting on parameter alpha of the density of
#' time-to-null excess hazard model
#'
#' @param z_tau Covariates matrix acting on time-to-null parameter.
#'
#' @param x time at which the predictions are provided
#'
#' @author Juste Goungounga, Judith Breaud, Olayide Boussari, Laura Botta, Valerie Jooste
#'
#' @references Boussari O, Bordes L, Romain G, Colonna M, Bossard N, Remontet L,
#' Jooste V. Modeling excess hazard with time-to-cure as a parameter.
#' Biometrics. 2021 Dec;77(4):1289-1302. doi: 10.1111/biom.13361.
#' Epub 2020 Sep 12. PMID: 32869288.
#' (\href{https://pubmed.ncbi.nlm.nih.gov/32869288/}{pubmed})
#'
#'
#' Boussari O, Romain G, Remontet L, Bossard N, Mounier M, Bouvier AM,
#' Binquet C, Colonna M, Jooste V. A new approach to estimate time-to-cure from
#' cancer registries data. Cancer Epidemiol. 2018 Apr;53:72-80.
#' doi: 10.1016/j.canep.2018.01.013. Epub 2018 Feb 4. PMID: 29414635.
#' (\href{https://pubmed.ncbi.nlm.nih.gov/29414635/}{pubmed})
#'
#' @keywords internal
varexhaz_adtneh2 <- function(z_tau = z_tau,
z_alpha = z_alpha,
x = x,
object) {
Dpi <- dexhazdtheta_adtneh2(z_tau = z_tau,
z_alpha = z_alpha,
x = x,
object)
varexhaz_res <- Dpi %*% object$varcov_star %*% t(Dpi)
return(varexhaz_res)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.