R/ggadjustedcurves.single.R

Defines functions ggadjustedcurves.single

ggadjustedcurves.single <-
function(data, fit) {
  time <- surv <- variable <- NULL
  
  pred <- survexp(~1, data = data, ratetable = fit)
  
  curve <- data.frame(time = c(0,pred$time),
                      variable = "total",
                      surv = c(1, pred$surv))
  
}
kuppal2/xmsPANDA documentation built on May 15, 2021, 5:48 a.m.