From eaa74121db5ecb781714118b2801ec01a008197f Mon Sep 17 00:00:00 2001 From: yh202109 Date: Sat, 13 Jul 2024 11:28:04 -0400 Subject: [PATCH] v0.2.20 --- docs/statlab_corr_spearman_rho.rst | 4 ++-- mtbp3/health/ectd.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/statlab_corr_spearman_rho.rst b/docs/statlab_corr_spearman_rho.rst index 1a23a030..cef11827 100644 --- a/docs/statlab_corr_spearman_rho.rst +++ b/docs/statlab_corr_spearman_rho.rst @@ -148,8 +148,8 @@ More Details Assume that :math:`Y_{i1} \sim \mathcal{D}`. For continuous :math:`Y_{i1}`, if we can assume that :math:`P(S_{i1}=0)=1`, then :eq:`eq_rank` can be simplified as :math:`R_{i1} = S_{i1}`. -For a given sample size :math:`n`, and :math:`r \in \{1, \ldots, n\}`, the PMF of :math:`R_{i1}` is -:math:`P(R_{i1} = r) = \frac{1}{n}`, which does not depend on :math:`\mathcal{D}` [4]_. +For a given sample size :math:`n`, and :math:`r \in \{1, \ldots, n\}`, the pmf of :math:`R_{i1}` is +:math:`P(R_{i1} = r) = \frac{1}{n}`, which does not depend on :math:`r` or :math:`\mathcal{D}` [4]_. ************* diff --git a/mtbp3/health/ectd.py b/mtbp3/health/ectd.py index c208a212..e5ed1022 100644 --- a/mtbp3/health/ectd.py +++ b/mtbp3/health/ectd.py @@ -53,7 +53,7 @@ def find_section_given_words(self, words, outfmt='simple', include='up', to_righ if include not in ['up', 'both']: raise ValueError("Invalid value for include. Supported values are 'up' and 'both'.") - out = [row for row in self.ctoc if words in row] + out = [row for row in self.ctoc if words.lower() in row.lower()] if outfmt == 'simple': return out elif outfmt == 'tree':