pyheor 0.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyheor/__init__.py +123 -0
- pyheor/analysis/__init__.py +26 -0
- pyheor/analysis/comparison.py +782 -0
- pyheor/analysis/results.py +1501 -0
- pyheor/distributions.py +411 -0
- pyheor/export/__init__.py +10 -0
- pyheor/export/excel.py +533 -0
- pyheor/export/excel_model.py +403 -0
- pyheor/export/report.py +279 -0
- pyheor/models/__init__.py +20 -0
- pyheor/models/common.py +355 -0
- pyheor/models/des.py +969 -0
- pyheor/models/markov.py +409 -0
- pyheor/models/microsim.py +652 -0
- pyheor/models/psm.py +480 -0
- pyheor/models/rewards.py +296 -0
- pyheor/plotting.py +1884 -0
- pyheor/survival.py +744 -0
- pyheor/survival_tools.py +83 -0
- pyheor/time.py +76 -0
- pyheor/utils.py +268 -0
- pyheor-0.4.0.dist-info/METADATA +210 -0
- pyheor-0.4.0.dist-info/RECORD +26 -0
- pyheor-0.4.0.dist-info/WHEEL +5 -0
- pyheor-0.4.0.dist-info/licenses/LICENSE +664 -0
- pyheor-0.4.0.dist-info/top_level.txt +1 -0
pyheor/__init__.py
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"""PyHEOR: health economic models with explicit time and reward units."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.4.0"
|
|
4
|
+
__author__ = "PyHEOR Team"
|
|
5
|
+
|
|
6
|
+
# Core sentinel
|
|
7
|
+
from .utils import C
|
|
8
|
+
from .time import Cycle, qaly, rescale_discount_rate
|
|
9
|
+
from .survival_tools import from_flexsurv, rescale_survival, ScaledSurvival
|
|
10
|
+
from .models.rewards import RewardContext
|
|
11
|
+
|
|
12
|
+
# Distributions
|
|
13
|
+
from .distributions import (
|
|
14
|
+
Distribution,
|
|
15
|
+
Beta,
|
|
16
|
+
Gamma,
|
|
17
|
+
Normal,
|
|
18
|
+
LogNormal,
|
|
19
|
+
Uniform,
|
|
20
|
+
Triangular,
|
|
21
|
+
Dirichlet,
|
|
22
|
+
Fixed,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
# Survival distributions
|
|
26
|
+
from .survival import (
|
|
27
|
+
SurvivalDistribution,
|
|
28
|
+
Exponential,
|
|
29
|
+
Weibull,
|
|
30
|
+
LogLogistic,
|
|
31
|
+
SurvLogNormal,
|
|
32
|
+
Gompertz,
|
|
33
|
+
GeneralizedGamma,
|
|
34
|
+
ProportionalHazards,
|
|
35
|
+
AcceleratedFailureTime,
|
|
36
|
+
KaplanMeier,
|
|
37
|
+
PiecewiseExponential,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
# Models
|
|
41
|
+
from .models.common import Param
|
|
42
|
+
from .models.markov import CohortStateTransitionModel, MarkovModel
|
|
43
|
+
from .models.psm import PartitionedSurvivalModel, PSMModel
|
|
44
|
+
from .models.microsim import (
|
|
45
|
+
IndividualStateTransitionModel,
|
|
46
|
+
MicroSimModel,
|
|
47
|
+
PatientProfile,
|
|
48
|
+
)
|
|
49
|
+
from .models.des import DiscreteEventSimulationModel, DESModel
|
|
50
|
+
|
|
51
|
+
# Results
|
|
52
|
+
from .analysis.results import (
|
|
53
|
+
BaseResult, OWSAResult, PSAResult, PSMBaseResult,
|
|
54
|
+
MicroSimResult, MicroSimPSAResult,
|
|
55
|
+
DESResult, DESPSAResult,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
# Excel export
|
|
59
|
+
from .export.excel import export_to_excel, export_comparison_excel
|
|
60
|
+
from .export.excel_model import export_excel_model
|
|
61
|
+
|
|
62
|
+
# Report
|
|
63
|
+
from .export.report import generate_report
|
|
64
|
+
|
|
65
|
+
# Comparison / CEA
|
|
66
|
+
from .analysis.comparison import CEAnalysis, calculate_icers
|
|
67
|
+
|
|
68
|
+
__all__ = [
|
|
69
|
+
"Cycle", "qaly", "rescale_discount_rate", "from_flexsurv",
|
|
70
|
+
"rescale_survival", "ScaledSurvival", "RewardContext",
|
|
71
|
+
# Sentinel
|
|
72
|
+
"C",
|
|
73
|
+
# Distributions
|
|
74
|
+
"Distribution",
|
|
75
|
+
"Beta",
|
|
76
|
+
"Gamma",
|
|
77
|
+
"Normal",
|
|
78
|
+
"LogNormal",
|
|
79
|
+
"Uniform",
|
|
80
|
+
"Triangular",
|
|
81
|
+
"Dirichlet",
|
|
82
|
+
"Fixed",
|
|
83
|
+
# Survival
|
|
84
|
+
"SurvivalDistribution",
|
|
85
|
+
"Exponential",
|
|
86
|
+
"Weibull",
|
|
87
|
+
"LogLogistic",
|
|
88
|
+
"SurvLogNormal",
|
|
89
|
+
"Gompertz",
|
|
90
|
+
"GeneralizedGamma",
|
|
91
|
+
"ProportionalHazards",
|
|
92
|
+
"AcceleratedFailureTime",
|
|
93
|
+
"KaplanMeier",
|
|
94
|
+
"PiecewiseExponential",
|
|
95
|
+
# Models
|
|
96
|
+
"CohortStateTransitionModel",
|
|
97
|
+
"PartitionedSurvivalModel",
|
|
98
|
+
"IndividualStateTransitionModel",
|
|
99
|
+
"DiscreteEventSimulationModel",
|
|
100
|
+
"MarkovModel",
|
|
101
|
+
"PSMModel",
|
|
102
|
+
"MicroSimModel",
|
|
103
|
+
"PatientProfile",
|
|
104
|
+
"DESModel",
|
|
105
|
+
"Param",
|
|
106
|
+
# Results
|
|
107
|
+
"BaseResult",
|
|
108
|
+
"PSMBaseResult",
|
|
109
|
+
"OWSAResult",
|
|
110
|
+
"PSAResult",
|
|
111
|
+
"MicroSimResult",
|
|
112
|
+
"MicroSimPSAResult",
|
|
113
|
+
"DESResult",
|
|
114
|
+
"DESPSAResult",
|
|
115
|
+
# Excel / Report
|
|
116
|
+
"export_to_excel",
|
|
117
|
+
"export_comparison_excel",
|
|
118
|
+
"export_excel_model",
|
|
119
|
+
"generate_report",
|
|
120
|
+
# Comparison / CEA
|
|
121
|
+
"CEAnalysis",
|
|
122
|
+
"calculate_icers",
|
|
123
|
+
]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Analysis, results, and cost-effectiveness evaluation."""
|
|
2
|
+
|
|
3
|
+
from .results import (
|
|
4
|
+
BaseResult,
|
|
5
|
+
OWSAResult,
|
|
6
|
+
PSAResult,
|
|
7
|
+
PSMBaseResult,
|
|
8
|
+
MicroSimResult,
|
|
9
|
+
MicroSimPSAResult,
|
|
10
|
+
DESResult,
|
|
11
|
+
DESPSAResult,
|
|
12
|
+
)
|
|
13
|
+
from .comparison import CEAnalysis, calculate_icers
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"BaseResult",
|
|
17
|
+
"OWSAResult",
|
|
18
|
+
"PSAResult",
|
|
19
|
+
"PSMBaseResult",
|
|
20
|
+
"MicroSimResult",
|
|
21
|
+
"MicroSimPSAResult",
|
|
22
|
+
"DESResult",
|
|
23
|
+
"DESPSAResult",
|
|
24
|
+
"CEAnalysis",
|
|
25
|
+
"calculate_icers",
|
|
26
|
+
]
|