Computes the predicted survivor function for a phpe model.
## S3 method for class 'survstan'survfit(formula, newdata =NULL,...)
Arguments
formula: an object of the class survstan
newdata: a data frame containing the set of explanatory variables; if NULL, a data.frame with the observed failure times and their corresponding estimated baseline survivals is returned.
...: further arguments passed to or from other methods.
Returns
a data.frame containing the estimated survival probabilities.