From 28d765225ea657f7e183343d3c128f56a971a401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20P=C3=B6lsterl?= Date: Sun, 12 Jan 2025 20:43:19 +0000 Subject: [PATCH] Fix API doc of _ci_logmlog --- sksurv/nonparametric.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sksurv/nonparametric.py b/sksurv/nonparametric.py index 52eab0cb..5d0d1f81 100644 --- a/sksurv/nonparametric.py +++ b/sksurv/nonparametric.py @@ -189,9 +189,13 @@ def _compute_counts_truncated(event, time_enter, time_exit): def _ci_logmlog(s, sigma_t, z): - """Compute the pointwise log-minus-log transformed confidence intervals. + r"""Compute the pointwise log-minus-log transformed confidence intervals. s refers to the prob_survival or the cum_inc (for the competing risks case). - sigma_t is the square root of the estimator of the log of the variance of s. + sigma_t is the square root of the variance of the log of the estimator of s. + + .. math:: + + \sigma_t = \mathrm{Var}(\log(\hat{S}(t))) """ eps = np.finfo(s.dtype).eps mask = s > eps