-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworkflow.R
69 lines (51 loc) · 2.22 KB
/
workflow.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Create 1km grid of the study area with cells assigned to district, ward and
# village
source("R/Create_SD_grid.R")
# Estimate human and dog populations monthly by village and district
source("R/SerengetiDogsVillage.R")
source("R/SerengetiDogsGrid.R")
# Produce Fig. 1
source("R/Fig.1.R")
# Look at parameter options for bounding vaccination coverage in (0,1). And
# produce Fig. S11
source("R/Bound_coverage.R")
# Obtain vaccination coverage by village and district from various sources of
# vaccination data
source("R/CreateVaccination.R")
# Process CT data for downstream scripts
source("R/process_CT_data.R")
# Figs 2, S1 and S9, Video S1, & Table S1
source("R/DescriptivePlots.R")
# Get distribution of human bites by a rabid dog
source("R/HumanBitesPerDog.R")
# Fit distance kernels for transmission tree
# (Note these look very different to the ones presented in the paper, because of
# the increased distances resulting from randomly jittering the locations)
source("R/Make_Distance_Kernel.R")
# Fit incubation and infectious periods, serial intervals and generation
# intervals
source("R/Make_Incubation_Infectious_Periods.R")
# Fig.S10. Again, note difference in distance kernel for jittered data, relative
# to the paper version
source("Plot_TT_dists.R")
# Generate transmission trees and estimate and plot incursions
source("R/Run_Transmission_Trees_treerabid.R")
source("R/incursions_over_time_treerabid.R")
# Prepare input data for all monthly models of incidence
source("R/model_data_prep.R")
# Prepare input data for all annual model of incidence
source("R/model_data_prep_annual.R")
# Models describing impact of prior vaccination and prior incidence on current
# incidence, without considering heterogeneity in coverage
source("R/incidence_coverage_models.R")
source("R/incidence_coverage_models_annual.R")
# Explore feasible values of the power parameter p in heterogeneity models (Fig.
# S3)
source("R/explore_powers.R")
# Fit power mean models (commented out as very slow - district not bad but
# village fits take a day each!!)
# source("R/Power_mean_model_district_stan.R")
# source("R/Power_mean_model_village_stan.R")
# Plot power mean models
source("R/Plot_stan_district_monthly.R")
source("R/Plot_stan_village_monthly.R")