R/SurvEst.R

#' Estimate the Survival Curve
#' 
#' Return the predicted survival probability at each unique time point
#' @param PosteriorDraws Matrix of random draws from the posterior distribution
#' of the survival curve.
#' @export

SurvEst = function(PosteriorDraws) {
  return(apply(PosteriorDraws, 2, mean))
}
nillen0/SurvBART documentation built on June 3, 2019, 6:58 p.m.