Update README.md
Browse files
README.md
CHANGED
|
@@ -6,5 +6,32 @@ colorTo: yellow
|
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
+
# DARTH Health Economic Model API
|
| 10 |
+
|
| 11 |
+
This API hosts a health economic Markov model (Sick-Sicker model) for probabilistic sensitivity analysis.
|
| 12 |
+
|
| 13 |
+
## Endpoints
|
| 14 |
+
|
| 15 |
+
### POST /runDARTHmodel
|
| 16 |
+
|
| 17 |
+
Run the DARTH model with custom parameters.
|
| 18 |
+
|
| 19 |
+
**Parameters:**
|
| 20 |
+
- `path_to_psa_inputs`: Path to CSV with PSA parameters (default: internal file)
|
| 21 |
+
- `model_functions`: GitHub URL to source model code
|
| 22 |
+
- `param_updates`: JSON data frame with parameter updates
|
| 23 |
+
|
| 24 |
+
**Example Request:**
|
| 25 |
+
```bash
|
| 26 |
+
curl -X POST "https://YOUR-SPACE-NAME.hf.space/runDARTHmodel" \
|
| 27 |
+
-H "Content-Type: application/json" \
|
| 28 |
+
-d '{"param_updates": [{"parameter":"p_HS1","distribution":"beta","v1":25,"v2":150}]}'
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## Response
|
| 32 |
+
|
| 33 |
+
Returns a CSV with 1000 rows and 6 columns:
|
| 34 |
+
- `C_No_Treatment`, `C_Treatment_A`, `C_Treatment_B` (Costs)
|
| 35 |
+
- `E_No_Treatment`, `E_Treatment_A`, `E_Treatment_B` (QALYs)
|
| 36 |
+
|
| 37 |
|
|
|