-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStartHere.R
51 lines (34 loc) · 985 Bytes
/
StartHere.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
# Plot figures and get numbers
# source scripts in the folder ----
source('runMCMC.R')
source('compute_DIC_Guyane_Predictors.R')
source('Infections.R')
source('Figure1.R')
source('plot_FOI_logscale.R')
source('ContingencyTables.R')
source('EstimationParameters.R')
# Load Data and Parameters ----
source('Load.R')
# Run MCMC
# takes from a few hours -> 1 day
F1=runMCMC()
# compute the deviance information criterion (DIC)
compute_DIC_Guyane_Predictors(F1)
# Make a data.frame with the infection probability of each individuals
Inf.Prob = Infections(F1)
# Figures ----
# Figure 1
#1A
figure1A(data)
#1B
figure1B(data)
# Figure 2 -----
# Figure 2A
plot_FOI_logscale(F1)
# 2B
source('RiskFactorsFOI.R')
# Compare the seroneutralisation results, the luminex, and the model prediction
ContingencyTables(Inf.Prob = Inf.Prob)
# Numbers ----
# Risk Factors Parameters and Antibody model Parameters
EstimationParameters()