|
16 | 16 | plot(times, exposed, label="exposed") |
17 | 17 | plot!(times, hosp, label="hosp") |
18 | 18 | xlabel!("Time (days)") |
19 | | -ylabel!("# individuals")</code></pre><img src="index-a25d4155.svg" alt="Example block output"/><pre><code class="language-julia hljs"># plot recorded Rt |
| 19 | +ylabel!("# individuals")</code></pre><img src="index-2056bf2c.svg" alt="Example block output"/><pre><code class="language-julia hljs"># plot recorded Rt |
20 | 20 | vecRt = Daedalus.Outputs.get_values(data, "Rt", 1) |
21 | 21 | plot(times, vecRt, label="Rt") |
22 | 22 | xlabel!("Time (days)") |
23 | | -ylabel!("Rt")</code></pre><img src="index-2b92cec8.svg" alt="Example block output"/><h2 id="Running-Daedalus-for-a-specific-country"><a class="docs-heading-anchor" href="#Running-Daedalus-for-a-specific-country">Running Daedalus for a specific country</a><a id="Running-Daedalus-for-a-specific-country-1"></a><a class="docs-heading-anchor-permalink" href="#Running-Daedalus-for-a-specific-country" title="Permalink"></a></h2><p>Pass a country name string directly to <code>daedalus</code> to use country-specific demography, contact patterns, and workforce data.</p><pre><code class="language-julia hljs">using Daedalus |
| 23 | +ylabel!("Rt")</code></pre><img src="index-cf2af050.svg" alt="Example block output"/><h2 id="Running-Daedalus-for-a-specific-country"><a class="docs-heading-anchor" href="#Running-Daedalus-for-a-specific-country">Running Daedalus for a specific country</a><a id="Running-Daedalus-for-a-specific-country-1"></a><a class="docs-heading-anchor-permalink" href="#Running-Daedalus-for-a-specific-country" title="Permalink"></a></h2><p>Pass a country name string directly to <code>daedalus</code> to use country-specific demography, contact patterns, and workforce data.</p><pre><code class="language-julia hljs">using Daedalus |
24 | 24 | using Plots |
25 | 25 |
|
26 | 26 | # Run the model using UK demography and contact patterns |
|
34 | 34 | plot!(times_uk, hosp_uk, label = "hospitalised") |
35 | 35 | xlabel!("Time (days)") |
36 | 36 | ylabel!("# individuals") |
37 | | -title!("United Kingdom — SEIR dynamics")</code></pre><img src="index-dfc1565b.svg" alt="Example block output"/><pre><code class="language-julia hljs"># Effective reproduction number over time |
| 37 | +title!("United Kingdom — SEIR dynamics")</code></pre><img src="index-7ed51313.svg" alt="Example block output"/><pre><code class="language-julia hljs"># Effective reproduction number over time |
38 | 38 | rt_uk = Daedalus.Outputs.get_values(data_uk, "Rt", 1) |
39 | 39 | plot(times_uk, rt_uk, label = "Rt", color = :red) |
40 | 40 | hline!([1.0], linestyle = :dash, color = :black, label = "Rt = 1") |
41 | 41 | xlabel!("Time (days)") |
42 | 42 | ylabel!("Rt") |
43 | | -title!("United Kingdom — effective reproduction number")</code></pre><img src="index-aeef5574.svg" alt="Example block output"/><p>See <a href="country_data/#Country-and-pathogen-data">Country and pathogen data</a> for a full overview of the bundled data and how to use pathogen-specific parameters.</p></article><nav class="docs-footer"><a class="docs-footer-nextpage" href="npis/">Implementing interventions »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.17.0 on <span class="colophon-date" title="Wednesday 4 March 2026 08:13">Wednesday 4 March 2026</span>. Using Julia version 1.12.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html> |
| 43 | +title!("United Kingdom — effective reproduction number")</code></pre><img src="index-98f062ea.svg" alt="Example block output"/><p>See <a href="country_data/#Country-and-pathogen-data">Country and pathogen data</a> for a full overview of the bundled data and how to use pathogen-specific parameters.</p></article><nav class="docs-footer"><a class="docs-footer-nextpage" href="npis/">Implementing interventions »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.17.0 on <span class="colophon-date" title="Wednesday 4 March 2026 08:18">Wednesday 4 March 2026</span>. Using Julia version 1.12.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html> |
0 commit comments