[root]/src/dr/evomodel/epidemiology
casetocase
(12 files, 117 lines)
Author | Changes | Lines of Code | Lines per Change |
---|---|---|---|
Totals | 72 (100.0%) | 3780 (100.0%) | 52.5 |
tbcbedford@gmail.com | 51 (70.8%) | 2067 (54.7%) | 40.5 |
danny.wilson@gmail.com | 8 (11.1%) | 1452 (38.4%) | 181.5 |
rambaut | 13 (18.1%) | 261 (6.9%) | 20.0 |
Submitting classes for epidemiological inference under deterministic SIS and SIR models to dr.evomodel.epidemiology
1452 lines of code changed in 8 files:
Adding attributions.
12 lines of code changed in 10 files:
Porting 'evaluateLate' interface method from 1.7 branch.
4 lines of code changed in 1 file:
I cleaned up some things and moved to a proportional framework. S, I and R are now 0 to 1 and sum to 1. There is an additional host population size parameter that scales each of these proportions. I use a delta exchange operator on the proportions.
Also, I fixed most of the mixing issues in a (stupidly) trivial fashion. I had assumed that smaller scaleFactors result in smaller operations. Starting scaleFactors off at 0.99 for recoveryRate and reproductiveNumber fixes most everything.
53 lines of code changed in 3 files:
Some cleanup of time keeping.
66 lines of code changed in 3 files:
Streamlining Timeseries Statistics.
27 lines of code changed in 1 file:
Rather than a custom logger, I've switched to statistics that describe time series. Have separate statistics for susceptibles, infecteds, recovereds and effective population size through time. Need to implement user-defined ranges and step sizes in the XML.
107 lines of code changed in 3 files:
Starting to implement a time series logger.
284 lines of code changed in 3 files:
Reparameterized transmission rate to R0. This allows me to put a lower limit of 1.0 on R0. Appears to working with simulated data. Need to assume a value on recovery rate for identifiability. Still getting poor acceptance probabilites. However, have had success with an operator that scales S, I and R simultaneously.
scale(sir.reproductiveNumber) 0.0036
scale(sir.susceptibles) 0.0099
scale(sir.infecteds) 0.1221
scale(sir.recovereds) 0.0106
up:sir.susceptibles sir.infecteds sir.recovereds down: 0.3145
35 lines of code changed in 4 files:
I had moved this to forward time. It didn't work very well at all. Too difficult to choose good initial parameter values. Switch back to backward time. Now working on multivariate operators.
70 lines of code changed in 5 files:
Rolling back SIRModel likelihood.
1 lines of code changed in 1 file:
Convergence issues had been an identifiability problem. Was going to an initial state with non-zero recovereds. I fixed this here by adding a likelihood to the model that prefers zero recovereds. However, this is causing massively slow mixing, because changing any one of the epidemiological parameters pushes the initial recovereds off their mark. Will attempt to move to a forward-simulation approach.
99 lines of code changed in 1 file:
Fixed issue with initial state. However, now there seems to be convergence issues.
44 lines of code changed in 3 files:
Identified bug in DynamicalVariable reset. Everything looks more-or-less in order. Testing now.
16 lines of code changed in 3 files:
I've implemented store/restore in DynamicalSystem and called this from SIRModel. No longer having errors, but something is still wrong.
117 lines of code changed in 4 files:
Streamlined Variable and Force constructors in DynamicalSystem. Interfaced SIRModel with DynamicalSystem. Doing just-in-time extension of timeseries when getValue is called. Compiles and runs, but gives a state-not-restored-correctly error.
164 lines of code changed in 3 files:
Implemented linear interpolation for getValue and trapezoidal rule for getIntegral.
71 lines of code changed in 2 files:
Implemented helper classes for dynamical systems. This is designed to simulate partial differential system via the simple Euler method. After forward calculation, can ask for the value at any point in time via fast binary search.
236 lines of code changed in 6 files:
Updated skeleton of SIRModel. Includes S, I and R parameters and doesn't crash. Returns dummy likelihood.
90 lines of code changed in 2 files:
Small cleanup and starting to store trajectory with HybridTauleapSEIR class.
80 lines of code changed in 1 file:
Integreting Denise's code for forward simulation of SIR trajectories.
507 lines of code changed in 3 files:
Start towards implementing Volz et al (2009) Genetics
245 lines of code changed in 2 files: