You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instructors/01-practical-tutors.qmd
+24-17Lines changed: 24 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -53,20 +53,15 @@ This practical has two activities.
53
53
54
54
## Activity 1: Clean and standardize raw data
55
55
56
+
**Goal:**
57
+
56
58
Get a clean and standardized data frame using the following available inputs:
57
59
58
60
- Raw messy data frame in CSV format
59
61
60
-
Within your room, Write your answers to these questions:
61
-
62
-
- Diagnose the raw data. What data cleaning operations need to be performed on the dataset? Write all of them before writing the code.
63
-
- What time unit best describes the time span to calculate?
64
-
- Print the report: What features do you find useful to communicate with a decision-maker?
65
-
- Compare: What differences do you identify from other room outputs? (if available)
66
-
67
62
**Steps:**
68
63
69
-
- Open file `01-practical-activity-1.R` and fill in your `room_number` in the script.
64
+
- Open file `01-practical-activity-1.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
70
65
- First, complete the argument to read the data. Paste the link as a “string” in `read_csv()`.
71
66
- Second, complete the cleaning process. Add functions based on the data needs. Connect them using the pipe `%>%`:
72
67
- Standardize column names
@@ -80,6 +75,14 @@ Within your room, Write your answers to these questions:
80
75
- Third, complete the cleanepi::timespan() arguments. Access the help manual running `?cleanepi::timespan()` in the console.
81
76
- Paste the outputs. Reply to questions.
82
77
78
+
**Questions:**
79
+
80
+
Within your room, Write your answers to these questions:
81
+
82
+
- Diagnose the raw data. What data cleaning operations need to be performed on the dataset? Write all of them before writing the code.
83
+
- What time unit best describes the time span to calculate?
84
+
- Print the report: What features do you find useful to communicate with a decision-maker?
85
+
- Compare: What differences do you identify from other room outputs? (if available)
83
86
84
87
### Inputs
85
88
@@ -166,10 +169,23 @@ Write your answers to the questions above:
166
169
167
170
## Activity 2: Validate linelist and plot epicurve
168
171
172
+
**Goal:**
173
+
169
174
Get a validated linelist and incidence plot using the following available inputs:
170
175
171
176
- Clean data frame object
172
177
178
+
**Steps:**
179
+
180
+
- Open the file `01-practical-activity-2.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
Copy file name to clipboardExpand all lines: instructors/02-practical-tutors.qmd
+26-18Lines changed: 26 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -52,21 +52,16 @@ This practical has two activities.
52
52
53
53
## Activity 1: Transmission
54
54
55
+
**Goal:**
56
+
55
57
Estimate $R_{t}$, _new infections_, _new reports_, _growth rate_, and _doubling/halving time_ using the following available inputs:
56
58
57
59
- Incidence of reported cases per day
58
60
- Reporting delay
59
61
60
-
Within your room, Write your answers to these questions:
61
-
62
-
- What phase of the epidemic are you observing? (Exponential growth phase, near peak, or decay end phase)
63
-
- Is the expected change in daily reports consistent with the estimated effective reproductive number, growth rate, and doubling time?
64
-
- Interpret: How would you communicate these results to a decision-maker?
65
-
- Compare: What differences do you identify from other room outputs? (if available)
66
-
67
62
**Steps:**
68
63
69
-
- Open the file `02-practical-activity-1.R` and fill in your `room_number` in the script.
64
+
- Open the file `02-practical-activity-1.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
70
65
- Paste the URL link as a string to read input data.
71
66
- Keep the reading function that corresponds to your input data disease.
72
67
- Define a generation time:
@@ -80,6 +75,15 @@ Within your room, Write your answers to these questions:
80
75
- Run `EpiNow2::epinow()` and print the summary and plot outputs.
81
76
- Paste the outputs. Reply to questions.
82
77
78
+
**Questions:**
79
+
80
+
Within your room, Write your answers to these questions:
81
+
82
+
- What phase of the epidemic are you observing? (Exponential growth phase, near peak, or decay end phase)
83
+
- Is the expected change in daily reports consistent with the estimated effective reproductive number, growth rate, and doubling time?
84
+
- Interpret: How would you communicate these results to a decision-maker?
85
+
- Compare: What differences do you identify from other room outputs? (if available)
86
+
83
87
### Inputs
84
88
85
89
| Room | Incidence | Link |
@@ -347,30 +351,34 @@ there is no statistical evidence of extinction if the 90% credible intervals of:
347
351
348
352
## Activity 2: Severity
349
353
354
+
**Goal:**
355
+
350
356
Estimate the _naive CFR (nCFR)_ and _delay-adjusted CFR (aCFR)_ using the following inputs:
351
357
352
358
- Reported cases (aggregate incidence by date of onset)
353
359
- Onset to death delay
354
360
355
-
Within your room, Write your answers to these questions:
356
-
357
-
- What phase of the epidemic are you observing? (Exponential growth phase, near peak, or decay end phase)
358
-
- Does the time series include all the possible deaths to observe from known cases?
359
-
- How much difference is there between the nCFR and aCFR estimates?
360
-
- Interpret: How would you communicate these results to a decision-maker?
361
-
- Compare: What differences do you identify from other room outputs? (if available)
362
-
363
361
**Steps:**
364
362
365
-
- Open the file `02-practical-activity-2.R` and fill in your `room_number` in the script.
363
+
- Open the file `02-practical-activity-2.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
366
364
- Paste the URL link as a string to read input data.
367
365
- Fill in the argument to plot an incidence curve.
368
366
- Evaluate if the input data format needs adaptation to {cfr}.
369
367
- Access to the probability distribution for the delay from case onset to death.
370
-
- Evaluate if you need to keep dates or omit using `dplyr::filter()`.
368
+
- Evaluate if you are requested to keep dates or omit using `dplyr::filter()`.
371
369
- Estimate the naive and delay-adjusted CFR.
372
370
- Paste the outputs. Reply to questions.
373
371
372
+
**Questions:**
373
+
374
+
Within your room, Write your answers to these questions:
375
+
376
+
- What phase of the epidemic are you observing? (Exponential growth phase, near peak, or decay end phase)
377
+
- Does the time series include all the possible deaths to observe from known cases?
378
+
- How much difference is there between the nCFR and aCFR estimates?
379
+
- Interpret: How would you communicate these results to a decision-maker?
380
+
- Compare: What differences do you identify from other room outputs? (if available)
Copy file name to clipboardExpand all lines: instructors/03-practical-tutors.qmd
+30-2Lines changed: 30 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -52,14 +52,24 @@ This practical has two activities.
52
52
53
53
## Activity 1: Account for superspreading
54
54
55
+
**Goal:**
56
+
55
57
Estimate the extent of individual-level variation (i.e. the dispersion parameter) of the offspring distribution, which refers to the variability in the number of secondary cases per individual, and assess the implications for variation in transmission for decision-making using the following available inputs:
56
58
57
59
- Line list of cases
58
60
- Contact tracing data
59
61
60
62
**Steps:**
61
63
62
-
Open the file `03-practical-activity-1.R` and fill in all the `#<COMPLETE>` lines following the `steps:` detailed in the R file.
64
+
- Open the file `03-practical-activity-1.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
65
+
- Paste the URL links as a string to read input data.
66
+
- Create a *directed* contact network using the linelist and contacts data inputs. Paste a screenshot of the network in the report.
67
+
- Calculate the *out-degree* for each node (infector case) in the contact network, using *all* the cases observed in the linelist. Paste the output histogram in the report.
68
+
- Use the vector with the number of secondary cases per infector case to fit a Negative Binomial distribution using {fitdistrplus}. Paste the output parameters in the report.
69
+
- Use {superspreading} to calculate the probability (proportion) of new cases originating from a cluster of a given size (cluster size), using as input the offspring distribution parameters: the reproduction number and dispersion. Paste the output result in the report.
70
+
71
+
72
+
**Questions:**
63
73
64
74
Within your room, Write your answers to these questions:
65
75
@@ -308,14 +318,32 @@ Interpretation Helpers:
308
318
309
319
## Activity 2: Simulate transmission chains
310
320
321
+
**Goal:**
322
+
311
323
Estimate the potential for large outbreaks that could occur based on 1000 simulated outbreaks with one initial case, using the following available inputs:
312
324
313
325
- Basic reproduction number
314
326
- Dispersion parameter
315
327
316
328
**Steps:**
317
329
318
-
Open the file `03-practical-activity-2.R` and fill in all the `#<COMPLETE>` lines following the `steps:` detailed in the R file.
330
+
- Open the file `03-practical-activity-2.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
331
+
- Use the input parameter for this room.
332
+
- Create generation time as an <epiparameter> object using epiparameter::epiparameter() with prob_distribution "gamma" and summary statistics: mean = 3, sd = 1
333
+
- Create 1000 simulation runs with 1 initial case. Add the input offspring distribution parameters to the corresponding arguments. Add the input generation time of class <epiparameter> as a function. Run set.seed() and epichains::simulate_chains() together, in the same run.
334
+
- Read the output of the selected chain to observe. Paste the screenshot in the report. Write in the report a paragraph describing:
335
+
- the number of unknown and known infectors, their IDs.
336
+
- the number of generations.
337
+
- who infected whom in each generation, and when? i.e., the time range in days of these infections per generation.
338
+
- Run the code to create a summary data frame of the whole simulation. Paste the plot output in the report.
339
+
- Use the plot or summary data frame (or any other calculation) to write in the report a description of:
340
+
- How many chains reached a 100 case threshold?
341
+
- What is the maximum size of chain? (The cumulative number of case)
342
+
- What is the maximum length of chain? (The number of days until the chain stops)
343
+
- Write in the report: interpretation and comparison between rooms.
344
+
345
+
346
+
**Questions:**
319
347
320
348
Within your room, Write your answers to these questions:
Copy file name to clipboardExpand all lines: instructors/04-practical-tutors.qmd
+32-3Lines changed: 32 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,8 @@ This practical has three activities.
53
53
54
54
## Activity 1: Generate Disease Trajectories Across Age Groups
55
55
56
+
**Goal:**
57
+
56
58
Generate disease trajectories of **infectious individuals** and **new infections** across age groups using the following available inputs:
57
59
58
60
- Social contact matrix
@@ -61,7 +63,16 @@ Generate disease trajectories of **infectious individuals** and **new infections
61
63
62
64
**Steps:**
63
65
64
-
Open the file `04-practical-activity-1.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
66
+
- Open the file `04-practical-activity-1.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
67
+
- Paste the survey link for your room
68
+
- Generate contact matrix by defining survey class object, country name, age limits from table of parameters, and whether to make a symmetric matrix.
69
+
- Combine the initial conditions add `initial_conditions_inf` or `initial_conditions_free` to the each age group as given in table of parameter.
70
+
- Prepare the population to model as affected by the epidemic add the name of the country, the symmetric and transposed contact matrix, the vector with the population size of each age group, the binded matrix with initial conditions for each age group.
71
+
- Rates. add the values as given in table of parameter
72
+
- In each function argument add the population object, each of the previously defined rates, the total simulation time as given in table of parameter.
73
+
- Paste plot of total number of individual per compartment and table output with peak size and time in report
74
+
- Paste plot output of new infections in report
75
+
65
76
66
77
**Questions:**
67
78
@@ -249,6 +260,8 @@ Figures using `socialmixr::matrix_plot(contact_data$matrix * contact_data$demogr
249
260
250
261
## Activity 2: Compare the Baseline Scenario with a Single Intervention
251
262
263
+
**Goal:**
264
+
252
265
Compare the disease trajectories of **new infections** in the whole population under two conditions:
253
266
254
267
1. The baseline scenario (no intervention)
@@ -263,7 +276,17 @@ Use the following inputs to define and explore the intervention scenario:
263
276
264
277
**Steps:**
265
278
266
-
Open the file `04-practical-activity-2.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
279
+
- Open the file `04-practical-activity-2.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
280
+
- Create the intervention object: identify if you need to keep: epidemics::intervention() or epidemics::vaccination(). then add:
281
+
- name of the intervention
282
+
- type of intervention ("rate" or "contacts"), if needed
283
+
- time when the intervention begins and ends (as values or matrix*) as given in table of inputs
284
+
- reduction or vaccination rate (as values or matrix*)
285
+
*if matrix, values follow same order as in the social contact matrix
286
+
- Add the intervention argument as a list (for interventions against contacts or transmission rate) or as an object (for vaccination)
287
+
- Paste plot and table output in report
288
+
- Plot new infections. Add intervention name if your intervention is vaccination, then activate the argument exclude_compartments, run and paste plot output in report
289
+
267
290
268
291
**Questions:**
269
292
@@ -427,11 +450,17 @@ Try modifying the intervention start time from day 200 to day 100, or changing t
427
450
428
451
## Activity 3: Combine Multiple Interventions
429
452
453
+
**Goal:**
454
+
430
455
Compare the baseline scenario with a simulation that includes two overlapping or sequential interventions. Use the intervention parameters described in the previous activity.
431
456
432
457
**Steps:**
433
458
434
-
Open the file `04-practical-activity-3.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
459
+
- Open the file `04-practical-activity-3.R` and complete all the lines marked with `#<COMPLETE>`, following the detailed steps provided within the R file.
460
+
- Complete the intervention or vaccination arguments
461
+
- Paste table output in report
462
+
- Plot new infections. add intervention name if your intervention is vaccination, then activate the argument exclude_compartments, run and paste plot output in report
0 commit comments