Skip to content

Commit 187b1b6

Browse files
authored
Merge pull request #117 from pythonhealthdatascience/dev
Dev
2 parents 9de6b17 + a46df9c commit 187b1b6

File tree

80 files changed

+3448
-3292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+3448
-3292
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Imports:
1515
patrick,
1616
plotly,
1717
prettycode,
18+
queueing,
1819
readr,
1920
reticulate,
2021
rmarkdown,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Check it out at: **https://pythonhealthdatascience.github.io/des_rap_book/**.
4646

4747
## Getting started/Navigation
4848

49-
* Visit the [DES RAP Book website](https://pythonhealthdatascience.github.io/des_rap_book/) for all tutorials and resources (also viewable locally as described below).
49+
* Visit the [DES RAP Book website](https://pythonhealthdatascience.github.io/des_rap_book/) for all tutorials and resources (also viewable locally as described in `CONTRIBUTING.md`).
5050

5151
* The example model repositories linked from the book are:
5252
* [Python M/M/s example](https://github.com/pythonhealthdatascience/pydesrap_mms)

pages/experiments/scenarios.qmd

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ bibliography: scenarios_resources/references.bib
2626

2727
This page continues on from: [Parallel processing](../output_analysis/parallel.qmd).
2828

29-
> *Entity generation → Entity processing → Initialisation bias → Performance measures → Replications → Length of warm-up → Number of replications → Parallel processing → Scenario and sensitivity analysis*
29+
> *Entity generation → Entity processing → Initialisation bias → Performance measures → Replications → Parallel processing → Scenario and sensitivity analysis*
3030
3131
**Required packages:**
3232

@@ -103,7 +103,7 @@ In @Heather2025, six out of seven studies with scenarios lacked scenario code. T
103103
{{< include ../output_analysis/replications_resources/summary_stats.py >}}
104104
{{< include ../output_analysis/parallel_resources/runner.py >}}
105105
```
106-
106+
= 18
107107
```{r}
108108
#| echo: false
109109
#| file: ../output_analysis/replications_resources/create_params.R
@@ -116,12 +116,7 @@ In @Heather2025, six out of seven studies with scenarios lacked scenario code. T
116116

117117
```{r}
118118
#| echo: false
119-
#| file: ../output_analysis/replications_resources/calc_arrivals.R
120-
```
121-
122-
```{r}
123-
#| echo: false
124-
#| file: ../output_analysis/replications_resources/calc_mean_wait.R
119+
#| file: ../output_analysis/replications_resources/metrics.R
125120
```
126121

127122
```{r}
@@ -378,7 +373,7 @@ scenarios <- list(
378373
number_of_doctors = c(3L, 4L, 5L)
379374
)
380375
scenario_results <- run_scenarios(
381-
scenarios = scenarios, base_list = create_params(number_of_runs = 100L)
376+
scenarios = scenarios, base_list = create_params()
382377
)
383378
384379
# Save to CSV
@@ -433,7 +428,7 @@ HTML(to_html_datatable(sensitivity_results.head(200)))
433428
# Run sensitivity analysis
434429
sensitivity_results <- run_scenarios(
435430
scenarios = list(interarrival_time = c(4L, 4.5, 5L, 5.5, 6L, 6.5, 7L)),
436-
base_list = create_params(number_of_runs = 100L)
431+
base_list = create_params()
437432
)
438433
439434
# Save to CSV
@@ -490,7 +485,7 @@ kable(sensitivity_results) |> scroll_box(height = "400px")
490485
| | |
491486
| - | - |
492487
| **Key files** | `notebooks/analysis.ipynb` |
493-
| **What to look for?** | These scenarios are run one-by-one in the Rmarkdown. They involve altering arrivals before running the simulation (5% increase in admissions), or changes in calculations (pooling beds). |
488+
| **What to look for?** | These scenarios are run one-by-one in the Jupyter notebook. They involve altering arrivals before running the simulation (5% increase in admissions), or changes in calculations (pooling beds). |
494489
: {tbl-colwidths="[20,80]"}
495490
:::
496491

pages/experiments/scenarios_resources/python_scenario_results.csv

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

pages/experiments/scenarios_resources/python_sensitivity_results.csv

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

0 commit comments

Comments
 (0)