Skip to content

Commit

Permalink
0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Mar 12, 2022
1 parent 4945631 commit e7919d3
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions kaplanmeier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

__author__ = 'Erdogan Tasksen'
__email__ = 'erdogant@gmail.com'
__version__ = '0.1.5'
__version__ = '0.1.6'

# module level doc-string
__doc__ = """
Expand All @@ -18,13 +18,23 @@
Example
----------
>>> # Import library
>>> import kaplanmeier as km
>>>
>>> # Example data
>>> df = km.example_data()
>>> out = km.fit(df['time'], df['Died'], df['group'])
>>> km.plot(out)
>>>
>>> # Fit
>>> results = km.fit(df['time'], df['Died'], df['group'])
>>>
>>> # Plot
>>> km.plot(results)
>>>
>>> km.plot(out, cmap='Set1', cii_lines=True, cii_alpha=0.05)
>>> km.plot(out, cmap=[(1, 0, 0),(0, 0, 1)])
>>> km.plot(out, cmap='Set1', methodtype='custom')
>>>
>>> results['logrank_P']
>>> results['logrank_Z']
"""

0 comments on commit e7919d3

Please sign in to comment.