Predict survival by year and/or month. If year and month are FALSE, predictions are made for a 'typical' year and month.

bb_predict_survival(
  survival,
  year = TRUE,
  month = FALSE,
  conf_level = 0.95,
  estimate = median,
  sig_fig = 3
)

Arguments

survival

An object of class 'bboufit_survival' (output of bb_fit_survival()).

year

A flag indicating whether to predict by year.

month

A flag indicating whether to predict by month.

conf_level

A number between 0 and 1 of the confidence level.

estimate

A function to calculate the estimate.

sig_fig

A whole number of the significant figures to round estimates by.

Value

A tibble of the predicted estimates.