CovidAlertVaccinationModel.jl 1.82 KB
Newer Older
1
module CovidAlertVaccinationModel
Peter Jentsch's avatar
Peter Jentsch committed
2
using Intervals: Ending
Peter Jentsch's avatar
Peter Jentsch committed
3
import Base.empty!
Peter Jentsch's avatar
Peter Jentsch committed
4
using Base: Float64
5
6
using LightGraphs
using RandomNumbers.Xorshifts
7
using Random
8
9
10
11
using UnPack
using Plots
using Distributions
using StatsBase
Peter Jentsch's avatar
Peter Jentsch committed
12
using OnlineStats
13
using Dates
14
using LinearAlgebra
15
using CovidAlertVaccinationModel
Peter Jentsch's avatar
Peter Jentsch committed
16
using ThreadsX
17
using DelimitedFiles
18
using KernelDensity
Peter Jentsch's avatar
Peter Jentsch committed
19
using NamedTupleTools
20
using NetworkLayout:Stress
21
using NetworkLayout:SFDP
22
using ZeroWeightedDistributions
23
using DataStructures
24
25
26
27
using Serialization
using BenchmarkTools
using Intervals
using KissABC
Peter Jentsch's avatar
Peter Jentsch committed
28
using CSV
29
30
import Pandas: read_csv
using DataFrames
31
using StaticArrays
Peter Jentsch's avatar
Peter Jentsch committed
32
import LightGraphs:neighbors,add_edge!
33

Peter Jentsch's avatar
Peter Jentsch committed
34
export intervalsmodel, hh, ws, rest, abm,multivariate_simulations
35

Peter Jentsch's avatar
Peter Jentsch committed
36
37
38
39
40
41
42
# const DNDEBUG = false
# macro c_assert(boolean) #this is a version of @assert that turns itself off when DNDEBUG=false, should use more
#     if DNDEBUG
#          message = string("Assertion: ", boolean, " failed")
#          :($(esc(boolean)) || error($message))
#     end
# end
43

Peter Jentsch's avatar
Peter Jentsch committed
44
const durmax = 144
45
const PACKAGE_FOLDER = dirname(dirname(pathof(CovidAlertVaccinationModel)))
46

47
const color_palette = palette(:seaborn_pastel) #color theme for the plots
Peter Jentsch's avatar
Peter Jentsch committed
48

49
50
include("utils.jl")
include("data.jl")
51
include("ABM/contact_vectors.jl")
52
include("ABM/mixing_distributions.jl")
53
include("ABM/mixing_graphs.jl")
54
include("ABM/agents.jl")
55
include("ABM/model_setup.jl")
Peter Jentsch's avatar
Peter Jentsch committed
56
include("ABM/parameter_optimization.jl")
57
include("ABM/output.jl")
58
include("ABM/solve.jl")
59
60
include("ABM/abm.jl") 
include("ABM/parameter_planes.jl")
Peter Jentsch's avatar
Peter Jentsch committed
61
include("ABM/plotting.jl")
62

63
64
65
66
67
68
include("IntervalsModel/intervals_model.jl")
include("IntervalsModel/interval_overlap_sampling.jl")
include("IntervalsModel/hh_durations_model.jl")
include("IntervalsModel/ws_durations_model.jl")
include("IntervalsModel/rest_durations_model.jl")
include("IntervalsModel/plotting_functions.jl")
69

70
end