+ "markdown": "---\ntitle: \"About EpiModel Gallery\"\ntoc: true\n---\n\n## What is EpiModel Gallery?\n\nTemplates for extending the [EpiModel](https://github.com/statnet/EpiModel) platform to model infectious disease dynamics over networks. Each example demonstrates how to build custom modules for stochastic network models using exponential random graph models (ERGMs).\n\nEpiModel provides built-in SIS/SIR models out of the box, but its module API supports arbitrarily complex epidemic systems. These examples teach by example --- from adding a single compartment to multi-stage disease models with interventions and cost-effectiveness analysis.\n\n## Getting Started\n\n### Prerequisites\n\n- **R** >= 4.5\n- **EpiModel** >= 2.6.0\n\nInstall EpiModel from CRAN:\n\n```r\ninstall.packages(\"EpiModel\")\n```\n\n### Running an Example\n\nClone the [repository](https://github.com/EpiModel/EpiModel-Gallery), then run any example from the project root:\n\n```r\nsource(\"examples/si-vital-dynamics/model.R\")\n```\n\nOr from the command line:\n\n```bash\nRscript examples/si-vital-dynamics/model.R\n```\n\n### Running All Examples\n\n```bash\nbash test.sh\n```\n\n## Contributing\n\nContributions of new gallery examples are welcome! To contribute:\n\n1. Fork the [repository](https://github.com/EpiModel/EpiModel-Gallery) on GitHub.\n2. Create a new subdirectory under `examples/` containing:\n - `model.R` --- main script for network estimation and simulation\n - `module-fx.R` --- custom module functions\n - `index.qmd` --- annotated Quarto document\n3. Include the standard unit test lines near the top of `model.R` (see existing examples).\n4. Verify your example passes: `bash test.sh`\n5. Submit a Pull Request.\n\n### Requesting New Examples\n\nIf you'd like to ask \"how would you build a network model in EpiModel that does X?\", file a [GitHub Issue](https://github.com/EpiModel/EpiModel-Gallery/issues) with a detailed description.\n\n## Build Environment\n\nThe examples on this site are built and tested against the environment below, pinned with [renv](https://rstudio.github.io/renv/) for reproducibility. The complete pinned set for all packages is recorded in [`renv.lock`](https://github.com/EpiModel/EpiModel-Gallery/blob/main/renv.lock).\n\n\n::: {.cell}\n::: {.cell-output-display}\n\n\nTable: R environment\n\n|Field |Value |\n|:----------------|:----------------------------|\n|R version |R version 4.6.1 (2026-06-24) |\n|Platform |aarch64-apple-darwin23 |\n|Operating system |macOS Tahoe 26.5.1 |\n\n\n:::\n:::\n\n\n\n::: {.cell}\n::: {.cell-output-display}\n\n\nTable: Core package versions\n\n|Package |Version |\n|:------------------|:----------|\n|dampack |1.0.2.1000 |\n|deSolve |1.42 |\n|dplyr |1.2.1 |\n|EpiModel |2.6.1 |\n|ergm |4.12.0 |\n|ergm.multi |0.3.0 |\n|network |1.20.0 |\n|networkDynamic |0.12.0 |\n|networkDynamicData |0.3.0 |\n|networkLite |1.1.0 |\n|renv |1.2.3 |\n|statnet.common |4.13.0 |\n|tergm |4.2.2 |\n\n\n:::\n:::\n\n\n## Citation\n\nIf using EpiModel for teaching or research, please include a citation:\n\n> Jenness SM, Goodreau SM and Morris M. EpiModel: An R Package for Mathematical Modeling of Infectious Disease over Networks. *Journal of Statistical Software.* 2018; 84(8): 1-47. doi: 10.18637/jss.v084.i08\n\n## License\n\n[MIT](https://github.com/EpiModel/EpiModel-Gallery/blob/main/LICENSE)\n",
0 commit comments