From 6cb17cd85fc955caa89b95cfe36f663f17045595 Mon Sep 17 00:00:00 2001 From: ArturoAmorQ Date: Wed, 3 Jul 2024 17:08:28 +0200 Subject: [PATCH] Set explicit value for n_events --- examples/plot_marginal_cumulative_incidence_estimation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/plot_marginal_cumulative_incidence_estimation.py b/examples/plot_marginal_cumulative_incidence_estimation.py index 4832e72..c42f988 100644 --- a/examples/plot_marginal_cumulative_incidence_estimation.py +++ b/examples/plot_marginal_cumulative_incidence_estimation.py @@ -54,6 +54,7 @@ X_uncensored, y_uncensored = make_synthetic_competing_weibull( n_samples=n_samples, + n_events=n_events, censoring_relative_scale=0, return_X_y=True, shape_ranges=shape_ranges, @@ -213,6 +214,7 @@ def plot_cumulative_incidence_functions(y, survival_boost=None, aj=None): # of censoring. X_censored, y_censored = make_synthetic_competing_weibull( n_samples=n_samples, + n_events=n_events, censoring_relative_scale=1.5, return_X_y=True, shape_ranges=shape_ranges,