Skip to content

Commit 2bd0627

Browse files
Merge pull request #1591 from FBruzzesi/patch/typos
Fix: Typos
2 parents b2be2ff + 0c0dd33 commit 2bd0627

27 files changed

+182
-196
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ If you are new to survival analysis, wondering why it is useful, or are interest
2424

2525
## Contact
2626
- Start a conversation in our [Discussions room](https://github.com/CamDavidsonPilon/lifelines/discussions).
27-
- Some users have posted common questions at [stats.stackexchange.com](https://stats.stackexchange.com/search?tab=votes&q=%22lifelines%22%20is%3aquestion)
28-
- creating an issue in the [Github repository](https://github.com/camdavidsonpilon/lifelines).
27+
- Some users have posted common questions at [stats.stackexchange.com](https://stats.stackexchange.com/search?tab=votes&q=%22lifelines%22%20is%3aquestion).
28+
- Creating an issue in the [Github repository](https://github.com/camdavidsonpilon/lifelines).
2929

3030
## Development
3131

docs/Changelog.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ New features
10631063
- new ``lifelines.plotting.rmst_plot`` for pretty figures of survival
10641064
curves and RMSTs.
10651065
- new variance calculations for
1066-
``lifelines.utils.resticted_mean_survival_time``
1066+
``lifelines.utils.restricted_mean_survival_time``
10671067
- performance improvements on regression models’ preprocessing. Should
10681068
make datasets with high number of columns more performant.
10691069

@@ -1760,7 +1760,7 @@ Bug fixes
17601760
-------------------
17611761

17621762
- Some performance improvements to ``CoxPHFitter`` (about 30%). I know
1763-
it may seem silly, but we are now about the same or slighty faster
1763+
it may seem silly, but we are now about the same or slightly faster
17641764
than the Cox model in R’s ``survival`` package (for some testing
17651765
datasets and some configurations). This is a big deal, because 1)
17661766
lifelines does more error checking prior, 2) R’s cox model is written
@@ -1800,7 +1800,7 @@ New features
18001800
API changes
18011801
~~~~~~~~~~~
18021802

1803-
- ``inital_beta`` in Cox model’s ``.fit`` is now ``initial_point``.
1803+
- ``initial_beta`` in Cox model’s ``.fit`` is now ``initial_point``.
18041804
- ``initial_point`` is now available in AFT models and
18051805
``CoxTimeVaryingFitter``
18061806
- the DataFrame ``confidence_intervals_`` for univariate models is
@@ -1853,7 +1853,7 @@ New features
18531853

18541854
- new AFT models: ``LogNormalAFTFitter`` and ``LogLogisticAFTFitter``.
18551855
- AFT models now accept a ``weights_col`` argument to ``fit``.
1856-
- Robust errors (sandwich errors) are now avilable in AFT models using
1856+
- Robust errors (sandwich errors) are now available in AFT models using
18571857
the ``robust=True`` kwarg in ``fit``.
18581858
- Performance increase to ``print_summary`` in the ``CoxPHFitter`` and
18591859
``CoxTimeVaryingFitter`` model.
@@ -2066,7 +2066,7 @@ Bug Fixes
20662066
Series now (use to be numpy arrays)
20672067
- remove ``alpha`` keyword from all statistical functions. This was
20682068
never being used.
2069-
- Gone are astericks and dots in ``print_summary`` functions that
2069+
- Gone are asterisks and dots in ``print_summary`` functions that
20702070
represent signficance thresholds.
20712071
- In models’ ``summary`` (including ``print_summary``), the ``log(p)``
20722072
term has changed to ``-log2(p)``. This is known as the s-value. See
@@ -2105,7 +2105,7 @@ Bug Fixes
21052105
-------------------
21062106

21072107
- Fix in ``compute_residuals`` when using ``schoenfeld`` and the
2108-
minumum duration has only censored subjects.
2108+
minimum duration has only censored subjects.
21092109

21102110
.. _section-91:
21112111

@@ -2154,7 +2154,7 @@ Bug Fixes
21542154
- ``weights_col`` is added
21552155
- ``nn_cumulative_hazard`` is removed (may add back)
21562156

2157-
- some plotting improvemnts to ``plotting.plot_lifetimes``
2157+
- some plotting improvements to ``plotting.plot_lifetimes``
21582158

21592159
.. _section-94:
21602160

@@ -2203,7 +2203,7 @@ Bug Fixes
22032203
- ``statistics.pairwise_logrank_test`` now returns a
22042204
``StatisticalResult`` object instead of a nasty NxN DataFrame 💗
22052205
- Display log(p-values) as well as p-values in ``print_summary``. Also,
2206-
p-values below thesholds will be truncated. The orignal p-values are
2206+
p-values below thresholds will be truncated. The original p-values are
22072207
still recoverable using ``.summary``.
22082208
- Floats ``print_summary`` is now displayed to 2 decimal points. This
22092209
can be changed using the ``decimal`` kwarg.
@@ -2275,7 +2275,7 @@ Bug Fixes
22752275
https://www.cs.cmu.edu/~pradeepr/convexopt/Lecture_Slides/Newton_methods.pdf.
22762276
Details about the Newton-decrement are added to the ``show_progress``
22772277
statements.
2278-
- Minimum suppport for scipy is 1.0
2278+
- Minimum support for scipy is 1.0
22792279
- Convergence errors in models that use Newton-Rhapson methods now
22802280
throw a ``ConvergenceError``, instead of a ``ValueError`` (the former
22812281
is a subclass of the latter, however).
@@ -2317,7 +2317,7 @@ Bug Fixes
23172317
that people could compute the p-values by hand incorrectly, a worse
23182318
outcome I think. So, this is my stance. P-values between 0.1 and 0.05
23192319
offer *very* little information, so they are removed. There is a
2320-
growing movement in statistics to shift “signficant” findings to
2320+
growing movement in statistics to shift “significant” findings to
23212321
p-values less than 0.01 anyways.
23222322
- New fitter for cumulative incidence of multiple risks
23232323
``AalenJohansenFitter``. Thanks @pzivich! See “Methodologic Issues
@@ -2458,7 +2458,7 @@ Bug Fixes
24582458
- added ``step_size`` param to ``CoxPHFitter.fit`` - the default is
24592459
good, but for extremely large or small datasets this may want to be
24602460
set manually.
2461-
- added a warning to ``CoxPHFitter`` to check for complete seperation:
2461+
- added a warning to ``CoxPHFitter`` to check for complete separation:
24622462
https://stats.idre.ucla.edu/other/mult-pkg/faq/general/faqwhat-is-complete-or-quasi-complete-separation-in-logisticprobit-regression-and-how-do-we-deal-with-them/
24632463
- Additional functionality to ``utils.survival_table_from_events`` to
24642464
bin the index to make the resulting table more readable.
@@ -2480,7 +2480,7 @@ Bug Fixes
24802480
0.11.2
24812481
------
24822482

2483-
- Changing liscense to valilla MIT.
2483+
- Changing license to valilla MIT.
24842484
- Speed up ``NelsonAalenFitter.fit`` considerably.
24852485

24862486
.. _section-114:
@@ -2555,7 +2555,7 @@ Bug Fixes
25552555
-----
25562556

25572557
- deprecates Pandas versions before 0.18.
2558-
- throw an error if no admissable pairs in the c-index calculation.
2558+
- throw an error if no admissible pairs in the c-index calculation.
25592559
Previously a NaN was returned.
25602560

25612561
.. _section-120:
@@ -2749,7 +2749,7 @@ Bug Fixes
27492749
Also some good speed improvements.
27502750
- KaplanMeierFitter and NelsonAalenFitter now have a ``_label``
27512751
property that is passed in during the fit.
2752-
- KaplanMeierFitter/NelsonAalenFitter’s inital ``alpha`` value is
2752+
- KaplanMeierFitter/NelsonAalenFitter’s initial ``alpha`` value is
27532753
overwritten if a new ``alpha`` value is passed in during the ``fit``.
27542754
- New method for KaplanMeierFitter: ``conditional_time_to``. This
27552755
returns a DataFrame of the estimate: med(S(t \| T>s)) - s, human

docs/Examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ In both cases, the reported standard errors from a unadjusted Cox model will be
941941
rossi = load_rossi()
942942
943943
# this may come from a database, or other libraries that specialize in matching
944-
mathed_pairs = [
944+
matched_pairs = [
945945
(156, 230),
946946
(275, 228),
947947
(61, 252),

docs/Survival Regression.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ New in v0.25.0, We can also use ✨formulas✨ to handle the right-hand-side of
111111
112112
cph.fit(rossi, duration_col='week', event_col='arrest', formula="fin + wexp + age * prio")
113113
114-
is analgous to the linear model with interaction term:
114+
is analogous to the linear model with interaction term:
115115

116116
.. math::
117117
\beta_1\text{fin} + \beta_2\text{wexp} + \beta_3 \text{age} + \beta_4 \text{prio} + \beta_5 \text{age} \cdot \text{prio}
@@ -513,7 +513,7 @@ Below we compare the non-parametric and the fully parametric baseline survivals:
513513
514514
ax = cph_spline.baseline_cumulative_hazard_[bch_key].plot(label="spline")
515515
cph_semi.baseline_cumulative_hazard_[bch_key].plot(ax=ax, drawstyle="steps-post", label="semi")
516-
cph_piecewise.baseline_cumulative_hazard_[bch_key].plot(ax=ax, label="peicewise[20,35]")
516+
cph_piecewise.baseline_cumulative_hazard_[bch_key].plot(ax=ax, label="piecewise[20,35]")
517517
plt.legend()
518518
519519

docs/Time varying survival regression.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ The new dataset looks like:
7878
+--+-----+----+----+-----+
7979

8080

81-
You'll also have secondary dataset that references future measurements. This could come in two "types". The first is when you have a variable that changes over time (ex: administering varying medication over time, or taking a tempature over time). The second types is an event-based dataset: an event happens at some time in the future (ex: an organ transplant occurs, or an intervention). We will address this second type later. The first type of dataset may look something like:
81+
You'll also have secondary dataset that references future measurements. This could come in two "types". The first is when you have a variable that changes over time (ex: administering varying medication over time, or taking a temperature over time). The second types is an event-based dataset: an event happens at some time in the future (ex: an organ transplant occurs, or an intervention). We will address this second type later. The first type of dataset may look something like:
8282

8383
Example:
8484

docs/jupyter_notebooks/Cox residuals.ipynb

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

docs/jupyter_notebooks/Custom Regression Models.ipynb

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

docs/jupyter_notebooks/Modelling time-lagged conversion rates.ipynb

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

docs/jupyter_notebooks/Piecewise Exponential Models and Creating Custom Models.ipynb

Lines changed: 16 additions & 16 deletions
Large diffs are not rendered by default.

docs/jupyter_notebooks/Proportional hazard assumption.ipynb

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)