Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add episodes on estimate superspreading and simulate chains (trial 04) #29

Merged
merged 140 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
a3b9c8f
add draft design content for superspreading and chains episodes
avallecam Mar 18, 2024
382e667
add episode on simulate
avallecam Mar 30, 2024
673fa2e
add empty lesson template
avallecam Mar 30, 2024
c2ef846
add packages and testimonial
avallecam Apr 1, 2024
a660b27
add summative code to episode
avallecam Apr 1, 2024
9151313
add draft content to episodes
avallecam Apr 2, 2024
47d3c7e
fix code output in build lesson
avallecam Apr 2, 2024
520d538
add episode specific packages
avallecam Apr 2, 2024
a0c0743
edit to pass lintr checks
avallecam Apr 3, 2024
6c5eb91
add redirection to project cases
avallecam Apr 3, 2024
916ce00
add text on contact tracing effords
avallecam Apr 3, 2024
38e33c5
add figures on contact tracing
avallecam Apr 3, 2024
bb88674
specify chunk test on cluster size probability
avallecam Apr 3, 2024
029b1e3
edit text on superspreading + order content
avallecam Apr 3, 2024
8655c9e
add unit figures from SEE paper
avallecam Apr 3, 2024
68e0634
edit code issues in output
avallecam Apr 3, 2024
1ee92e6
fix code to pass lintr
avallecam Apr 3, 2024
26a2460
select a minimal chain
avallecam Apr 3, 2024
989d8d5
clean simluation output to three generations only
avallecam Apr 3, 2024
6c577fc
add intro to estimate episode
avallecam Apr 4, 2024
15e303c
clean entry content
avallecam Apr 4, 2024
ce964e5
add figures on see from hong kong sars cov 2 paper
avallecam Apr 4, 2024
fc674aa
solve lint checks
avallecam Apr 4, 2024
ba898f0
rephrase contact tracing justification
avallecam Apr 5, 2024
e02b562
add purrr checkpoint callout as prerequisite
avallecam Apr 5, 2024
a6f378d
change number of simulation chain number id
avallecam Apr 5, 2024
61fcecf
add blog post content on the episode topic
avallecam Apr 5, 2024
1b8ba4f
expand on topics
avallecam Apr 5, 2024
07a8f49
typo addition
avallecam Apr 5, 2024
8c467db
add empirica evidence of backward tracing
avallecam Apr 5, 2024
8632bf8
simplify epiparameter callout
avallecam Apr 5, 2024
73e46f3
fix lintr checks
avallecam Apr 5, 2024
d05bfe1
clean individual reproduction number section
avallecam Apr 5, 2024
ab472a9
add callout to differentiate terminologies
avallecam Apr 5, 2024
f4d90c2
clear content writing + add entry to estimate k
avallecam Apr 5, 2024
d380199
edit the fitted plot + add callout on pkg helper
avallecam Apr 7, 2024
2f9c939
fix heterogeneity call out text
avallecam Apr 7, 2024
c55e448
rearrange after review
avallecam Apr 7, 2024
8659d5a
make estimation of sse as challenge
avallecam Apr 7, 2024
3233e7d
make epiparameter explicit
avallecam Apr 7, 2024
508f18d
relocate and simplify text after review
avallecam Apr 7, 2024
fa48ad7
add within challenges and prioritize content
avallecam Apr 7, 2024
7666ccd
move text on decision making to simulate episode
avallecam Apr 7, 2024
827e3c8
relocate complementary information chunk
avallecam Apr 7, 2024
e61dc86
fix typo
avallecam Apr 7, 2024
8e29ba6
clarify relationship between poisson and nb
avallecam Apr 7, 2024
ca862e4
clarify challenge
avallecam Apr 7, 2024
e1f916c
clean all challenges
avallecam Apr 7, 2024
a9aefa3
clean variation across diseases chunk
avallecam Apr 7, 2024
5d7103d
clean output after review
avallecam Apr 7, 2024
8834aa2
add keypoints
avallecam Apr 7, 2024
eb0150e
test plot from epiparameter and superspreading
avallecam Apr 7, 2024
dfd8611
fix text and figure after review
avallecam Apr 7, 2024
892fa23
clarify challenges questions + text and subtitles
avallecam Apr 7, 2024
f7258e0
fix lintr checks
avallecam Apr 7, 2024
c5803d3
clear question writing
avallecam Apr 7, 2024
7716b51
fix code clarity
avallecam Apr 7, 2024
f89474c
clean code output
avallecam Apr 7, 2024
a3aa244
pass lintr checks
avallecam Apr 7, 2024
8f3f1cf
update to not superseded functions
avallecam Apr 7, 2024
826eb63
pass lintr edits
avallecam Apr 7, 2024
32b4519
add spoiler on simulated over observed cases
avallecam Apr 9, 2024
b2a6564
add labels to ggplots
avallecam Apr 9, 2024
9129769
focus on map in the checkpoint callout
avallecam Apr 9, 2024
978b34c
clean spoiler code
avallecam Apr 9, 2024
b1fd319
clear ggplot actions
avallecam Apr 9, 2024
869d176
increase visibility of chains size and length
avallecam Apr 9, 2024
f4282a8
introduce epichains class object
avallecam Apr 9, 2024
b223a70
show distribution of outbreaks and null intros
avallecam Apr 9, 2024
a829a33
make observed over simulated cases visible
avallecam Apr 9, 2024
0bbdfc3
add intro text to spoiler section
avallecam Apr 9, 2024
cbfe443
remove distribution chunk + text median outbreaks
avallecam Apr 9, 2024
c86026f
pass lintr checks + complement explanation text
avallecam Apr 9, 2024
8dc2dbd
rephrase conclusion
avallecam Apr 9, 2024
3178dae
relocated interpretation from simulations
avallecam Apr 9, 2024
b7b825e
add interpretation of observed over simulated
avallecam Apr 9, 2024
52ee7c7
add figure introduce cases generations size length
avallecam Apr 9, 2024
608887c
use duration of chain instead of length
avallecam Apr 9, 2024
a9f2084
show why to transform chain ID to factor
avallecam Apr 9, 2024
9115c17
rewrite referral to an explosive outbreal
avallecam Apr 9, 2024
00e6e44
use mean and sd from serial interval in text
avallecam Apr 9, 2024
2089ecb
clean offspring definition
avallecam Apr 9, 2024
763287f
homogenize term to reproduction over reproductive
avallecam Apr 9, 2024
f1fd663
homogenize reproduction number across episode
avallecam Apr 9, 2024
9770315
add text about argument
avallecam Apr 9, 2024
3819e37
complete writing content
avallecam Apr 9, 2024
fce7d09
edit the challenges
avallecam Apr 10, 2024
d3ca8dd
clean challenge section writing
avallecam Apr 10, 2024
71fc68b
provide dosified reading of the epichains output
avallecam Apr 10, 2024
e8e3bfb
fix closing of tag callout
avallecam Apr 10, 2024
6b4ae73
fill introduction
avallecam Apr 10, 2024
c78e3d1
add figures for k and percent of large outbreaks
avallecam Apr 10, 2024
981413b
add preliminary time to 30 min
avallecam Apr 10, 2024
b508e35
use grammarly with simulate episode
avallecam Apr 10, 2024
a7313ba
Clean writing of questions and objectives
avallecam Apr 15, 2024
9f3e604
clean writing of introduction
avallecam Apr 15, 2024
9a83061
clean contact data callout
avallecam Apr 15, 2024
b6d287e
clean writing of questions and objectives
avallecam Apr 15, 2024
38462e9
homogenize usage of individual-level variation
avallecam Apr 15, 2024
061ebd7
add detail on mers data
avallecam Apr 15, 2024
0673144
rewrite for clarity
avallecam Apr 15, 2024
36dc1d4
homogenize usage of r nut
avallecam Apr 15, 2024
0fd212b
add R0 context for individual reproduction number
avallecam Apr 15, 2024
d9d7226
add explanation on the right-hand tail
avallecam Apr 15, 2024
34a5026
add biological and environmental details
avallecam Apr 15, 2024
c0e3822
expand sentence on individual level of transmission
avallecam Apr 15, 2024
0bc169a
use potential for superspreading
avallecam Apr 15, 2024
d307299
add explanation on the 20/80 rule
avallecam Apr 15, 2024
381abd0
fix one dot
avallecam Apr 15, 2024
f2dfd8d
rewrite intro on SSE definition
avallecam Apr 15, 2024
f061829
add suggested edit on backward contact strategy
avallecam Apr 15, 2024
ce3dda2
use SARS-1 to differenciate it from SARS-CoV-2
avallecam Apr 15, 2024
0fee33e
apply suggestions for introduction
avallecam Apr 15, 2024
c87cbdc
apply suggestions for branching intro
avallecam Apr 15, 2024
a1db806
homogenise to use individual level variation
avallecam Apr 15, 2024
77fe7e2
clear get offspring distribution section
avallecam Apr 15, 2024
3a476c6
clear simulate single chain section
avallecam Apr 15, 2024
18af963
fix number_chains typo
avallecam Apr 15, 2024
7d42cbe
add chunk to make visible the number of chain
avallecam Apr 15, 2024
2c94e32
clear mention to number of chains
avallecam Apr 15, 2024
9ccde6e
fix print of number_chains
avallecam Apr 15, 2024
7ea4815
fix capitalization in solution subtitle
avallecam Apr 15, 2024
1574c33
collect suggestions across text
avallecam Apr 15, 2024
04e894f
add discussion context to readers
avallecam Apr 15, 2024
0d50b87
collect edits in viz and challenge
avallecam Apr 15, 2024
139244b
collect edits on questions
avallecam Apr 15, 2024
e243368
apply suggestions from code review
avallecam Apr 30, 2024
0d7e435
apply suggestions from code review
avallecam Apr 30, 2024
ff35dc8
fix serial interval object naming
avallecam Apr 30, 2024
3ca57f3
replace exclusive with customizable
avallecam Apr 30, 2024
abdbec0
add double colon checklist in introduction (#49)
avallecam Apr 30, 2024
dcfa576
add book link to the dot prefix
avallecam Apr 30, 2024
fa8742f
remove covidregional from setup
avallecam Apr 30, 2024
2679788
rename subtitle on backward strategy
avallecam Apr 30, 2024
bf0da27
connect number output with text
avallecam Apr 30, 2024
9d76ddf
add set seed for same result always
avallecam Apr 30, 2024
a6cb3c3
annotate code and use simulation TRUE
avallecam Apr 30, 2024
60ceb9f
add solutions to challenges
avallecam Apr 30, 2024
189cd02
protect from conflicts
avallecam Apr 30, 2024
488b887
fix lintr checks
avallecam Apr 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ carpentry: 'incubator'
title: 'Real-time analysis and forecasting for outbreak analytics with R'

# Date the lesson was created (YYYY-MM-DD, this is empty by default)
created:
created:

# Comma-separated list of keywords for the lesson
keywords: 'forecasts, epidemic models, interventions'
Expand Down Expand Up @@ -62,21 +62,23 @@ episodes:
#- quantify-transmissibility.Rmd
- create-forecast.Rmd
- severity-static.Rmd
- superspreading-estimate.Rmd
- superspreading-simulate.Rmd

# Information for Learners
learners:
learners:

# Information for Instructors
instructors:
instructors:

# Learner Profiles
profiles:
profiles:

# Customisation ---------------------------------------------
#
# This space below is where custom yaml items (e.g. pinning
# sandpaper and varnish versions) should live


varnish: epiverse-trace/varnish@epiversetheme
# this is carpentries/sandpaper#533 in our fork so we can keep it up to date with main
sandpaper: epiverse-trace/sandpaper@patch-renv-github-bug
Binary file added episodes/fig/SEE-dist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added episodes/fig/SEE-params.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added episodes/fig/contact-tracing-backward-time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added episodes/fig/contact-tracing-serial-interval.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added episodes/fig/contact-tracing-strategies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added episodes/fig/see-intro-secondary-cases-fig-b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added episodes/fig/see-intro-secondary-cases.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added episodes/fig/see-intro-superspreading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added episodes/fig/see-nature04153_Fig2-c.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added episodes/fig/see-nature04153_Fig2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
882 changes: 882 additions & 0 deletions episodes/superspreading-estimate.Rmd

Large diffs are not rendered by default.

1,029 changes: 1,029 additions & 0 deletions episodes/superspreading-simulate.Rmd

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion learners/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ library(EpiNow2)
library(cfr)
library(epiparameter)
library(incidence2)
library(covidregionaldata)
library(outbreaks)
library(tidyverse)
```
Expand Down
212 changes: 212 additions & 0 deletions renv/profiles/lesson-requirements/renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,23 @@
],
"Hash": "40415719b5a479b87949f3aa0aee737c"
},
"bpmodels": {
"Package": "bpmodels",
"Version": "0.3.1",
"Source": "GitHub",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteRepo": "bpmodels",
"RemoteUsername": "epiverse-trace",
"RemotePkgRef": "epiverse-trace/bpmodels",
"RemoteRef": "HEAD",
"RemoteSha": "07c054090f2b07367855b73a0cc2c43e24bc32d3",
"Requirements": [
"R",
"checkmate"
],
"Hash": "4374941c8a9cf7a8991072466918c3b2"
},
"broom": {
"Package": "broom",
"Version": "1.0.5",
Expand Down Expand Up @@ -513,6 +530,19 @@
],
"Hash": "e8a1e41acf02548751f45c718d55aa6a"
},
"crosstalk": {
"Package": "crosstalk",
"Version": "1.2.1",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R6",
"htmltools",
"jsonlite",
"lazyeval"
],
"Hash": "ab12c7b080a57475248a30f4db6298c0"
},
"curl": {
"Package": "curl",
"Version": "5.2.0",
Expand Down Expand Up @@ -676,6 +706,42 @@
],
"Hash": "bb0eec2fe32e88d9e2836c2f73ea2077"
},
"epichains": {
"Package": "epichains",
"Version": "0.0.0.9999",
"Source": "GitHub",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteRepo": "epichains",
"RemoteUsername": "epiverse-trace",
"RemotePkgRef": "epiverse-trace/epichains",
"RemoteRef": "HEAD",
"RemoteSha": "7b5b80b7b8531fba18e827636a45b0d064e73c76",
"Requirements": [
"R",
"checkmate",
"stats",
"utils"
],
"Hash": "e4d58df3ff7111aa1c89356cad126c3b"
},
"epicontacts": {
"Package": "epicontacts",
"Version": "1.1.3",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"colorspace",
"dplyr",
"grDevices",
"igraph",
"methods",
"threejs",
"visNetwork"
],
"Hash": "ce65f8ac65b26b2a6c17497a4cd5d3a0"
},
"epiparameter": {
"Package": "epiparameter",
"Version": "0.0.0.9000",
Expand Down Expand Up @@ -747,6 +813,21 @@
],
"Hash": "66fa5a16464666772f4929f8f5b2fc71"
},
"fitdistrplus": {
"Package": "fitdistrplus",
"Version": "1.1-11",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"MASS",
"R",
"grDevices",
"methods",
"stats",
"survival"
],
"Hash": "f40ef9686e85681a1ccbf33d9236aeb9"
},
"fontawesome": {
"Package": "fontawesome",
"Version": "0.5.2",
Expand Down Expand Up @@ -1080,6 +1161,21 @@
],
"Hash": "2d7b3857980e0e0d0a1fd6f11928ab0f"
},
"htmlwidgets": {
"Package": "htmlwidgets",
"Version": "1.6.4",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"grDevices",
"htmltools",
"jsonlite",
"knitr",
"rmarkdown",
"yaml"
],
"Hash": "04291cc45198225444a397606810ac37"
},
"httr": {
"Package": "httr",
"Version": "1.4.7",
Expand All @@ -1106,6 +1202,29 @@
],
"Hash": "99df65cfef20e525ed38c3d2577f7190"
},
"igraph": {
"Package": "igraph",
"Version": "2.0.3",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"Matrix",
"R",
"cli",
"cpp11",
"grDevices",
"graphics",
"lifecycle",
"magrittr",
"methods",
"pkgconfig",
"rlang",
"stats",
"utils",
"vctrs"
],
"Hash": "c3b7d801d722e26e4cd888e042bf9af5"
},
"incidence2": {
"Package": "incidence2",
"Version": "2.2.3",
Expand Down Expand Up @@ -1215,6 +1334,16 @@
],
"Hash": "7c5e89f04e72d6611c77451f6331a091"
},
"lazyeval": {
"Package": "lazyeval",
"Version": "0.2.2",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R"
],
"Hash": "d908914ae53b04d4c0c0fd72ecc35370"
},
"lifecycle": {
"Package": "lifecycle",
"Version": "1.0.4",
Expand Down Expand Up @@ -1902,6 +2031,42 @@
],
"Hash": "960e2ae9e09656611e0b8214ad543207"
},
"superspreading": {
"Package": "superspreading",
"Version": "0.2.0.9000",
"Source": "GitHub",
"Remotes": "epiverse-trace/epiparameter, epiverse-trace/bpmodels",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteRepo": "superspreading",
"RemoteUsername": "epiverse-trace",
"RemotePkgRef": "epiverse-trace/superspreading",
"RemoteRef": "HEAD",
"RemoteSha": "4549ff929acb90aee04dc3b66a7fb30503affbc5",
"Requirements": [
"bpmodels",
"checkmate",
"rlang",
"stats"
],
"Hash": "b6902d57c67ae90e59f588c01319aea7"
},
"survival": {
"Package": "survival",
"Version": "3.5-7",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"Matrix",
"R",
"graphics",
"methods",
"splines",
"stats",
"utils"
],
"Hash": "b8e943d262c3da0b0febd3e04517c197"
},
"sys": {
"Package": "sys",
"Version": "3.4.2",
Expand Down Expand Up @@ -1932,6 +2097,22 @@
],
"Hash": "997aac9ad649e0ef3b97f96cddd5622b"
},
"threejs": {
"Package": "threejs",
"Version": "0.3.3",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"base64enc",
"crosstalk",
"htmlwidgets",
"igraph",
"methods",
"stats"
],
"Hash": "2ad32c3a8745e827977f394bc387e3b0"
},
"tibble": {
"Package": "tibble",
"Version": "3.2.1",
Expand Down Expand Up @@ -2116,6 +2297,24 @@
],
"Hash": "c826c7c4241b6fc89ff55aaea3fa7491"
},
"visNetwork": {
"Package": "visNetwork",
"Version": "2.1.2",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"grDevices",
"htmltools",
"htmlwidgets",
"jsonlite",
"magrittr",
"methods",
"stats",
"utils"
],
"Hash": "3e48b097e8d9a91ecced2ed4817a678d"
},
"vroom": {
"Package": "vroom",
"Version": "1.6.5",
Expand All @@ -2142,6 +2341,19 @@
],
"Hash": "390f9315bc0025be03012054103d227c"
},
"webshot": {
"Package": "webshot",
"Version": "0.5.5",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"R",
"callr",
"jsonlite",
"magrittr"
],
"Hash": "16858ee1aba97f902d24049d4a44ef16"
},
"withr": {
"Package": "withr",
"Version": "3.0.0",
Expand Down
Loading