You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**gen_surv** is a Python package for simulating survival data under a variety of models, inspired by the R package [`genSurv`](https://cran.r-project.org/package=genSurv). It supports data generation for:
11
-
12
-
- Cox Proportional Hazards Models (CPHM)
13
-
- Continuous-Time Markov Models (CMM)
14
-
- Time-Dependent Covariate Models (TDCM)
15
-
- Time-Homogeneous Hidden Markov Models (THMM)
9
+
**gen_surv** is a Python package for simulating survival data under a variety of statistical models. It is inspired by the R package [genSurv](https://cran.r-project.org/package=genSurv) and provides a unified interface for generating realistic survival datasets.
16
10
17
11
---
18
12
19
-
## 📦 Installation
13
+
## Features
20
14
21
-
```bash
22
-
poetry install
23
-
```
24
-
This package requires **Python 3.10** or later.
25
-
## ✨ Features
26
-
27
-
- Consistent interface across models
28
-
- Censoring support (`uniform` or `exponential`)
29
-
- Easy integration with `pandas` and `NumPy`
30
-
- Suitable for benchmarking survival algorithms and teaching
31
-
- Accelerated Failure Time (Log-Normal) model generator
15
+
- Cox proportional hazards model (CPHM)
16
+
- Accelerated failure time models (log-normal, log-logistic)
17
+
- Continuous-time multi-state Markov model (CMM)
18
+
- Time-dependent covariate model (TDCM)
19
+
- Time-homogeneous hidden Markov model (THMM)
32
20
- Mixture cure and piecewise exponential models
33
21
- Competing risks generators (constant and Weibull hazards)
34
-
- Command-line interface powered by `Typer`
35
-
- Export utilities for CSV, JSON, and Feather formats
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on setting up your environment, running tests, and submitting pull requests.
75
+
## Documentation
163
76
164
-
## 🔧 Development Tasks
77
+
Full documentation is hosted on [Read the Docs](https://gensurvpy.readthedocs.io/en/latest/). It includes installation instructions, tutorials, API references and a bibliography.
165
78
166
-
Common project commands are defined in [`tasks.py`](tasks.py) and can be executed with [Invoke](https://www.pyinvoke.org/):
79
+
To build the docs locally:
167
80
168
81
```bash
169
-
poetry run inv -l # list available tasks
170
-
poetry run inv test# run the test suite
82
+
cd docs
83
+
make html
171
84
```
172
85
173
-
## 📑 Citation
86
+
Open `build/html/index.html` in your browser to view the result.
87
+
88
+
## License
89
+
90
+
This project is licensed under the MIT License. See [LICENCE](LICENCE) for details.
174
91
175
-
If you use **gen_surv** in your work, please cite it using the metadata in
176
-
[`CITATION.cff`](CITATION.cff). Many reference managers can import this file
177
-
directly.
92
+
## Citation
93
+
94
+
If you use **gen_surv** in your research, please cite the project using the metadata in [CITATION.cff](CITATION.cff).
0 commit comments