Survival analysis (censored data)

Survival analysis (censored data)#

Plot Kaplan-Meier survival curve vs posterior predictive draws.

Matplotlib version of plot_ppc_censored

Link to this page with the bokeh tab selected

Link to this page with the plotly tab selected

from arviz_base import load_arviz_data

import arviz_plots as azp

azp.style.use("arviz-variat")

data = load_arviz_data("censored_cats")
pc = azp.plot_ppc_censored(
    data,
    truncation_factor=None,
    backend="none",
)

pc.show()

See also

API Documentation: plot_ppc_censored

Other examples with plot_ppc_censored#