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)
}
CecileProust-Lima/lcmm documentation built on March 3, 2024, 5:23 p.m.