R/estimates.externSurv.R

Defines functions estimates.externSurv

Documented in estimates.externSurv

#' @export
estimates.externSurv <- function(x, cholesky)
{
  if(missing(x)) stop("The argument x should be specified")
  if (!inherits(x, "externSurv")) stop("use only with \"externSurv\" objects")
  if(!missing(cholesky)) warning("No cholesky is defined in 'externSurv' objects")
  
  if(x$conv==1 | x$conv==2 | x$conv==3)
  {
    res <- x$best
  }
  else
  {
    res <- NA
    cat("Output can not be produced since the program stopped abnormally. \n")
  }
  
  return(res)
}

Try the lcmm package in your browser

Any scripts or data that you put into this service are public.

lcmm documentation built on Oct. 7, 2023, 1:08 a.m.