Skip to content

Community and Hospital

Models disease transmission in two linked populations - a community and a hospital - with admission and discharge events.

View this example on GitHub.

Try It Live

Edit the code below and click â–¶ Run to compile and execute it in your browser via Compiler Explorer. No local setup needed!

🧪 Interactive Example