Title: | Support Code for the Introduction to Practical Disease Modelling Course |
---|---|
Description: | What the package does (one paragraph). |
Authors: | Matt Denwood [aut, cre] |
Maintainer: | Matt Denwood <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.2.1-1 |
Built: | 2024-10-22 05:15:35 UTC |
Source: | https://github.com/ku-awdc/IPDMR |
Title
## S3 method for class 'ipdmr_dt' autoplot(object, ...)
## S3 method for class 'ipdmr_dt' autoplot(object, ...)
... |
An example function
example_function(optional_argument = 42L)
example_function(optional_argument = 42L)
optional_argument |
an argument with a default value |
# Some example code: df <- example_function() df
# Some example code: df <- example_function() df
Title
si_continuous( N = 10, beta = 0.05, type = c("frequency", "density"), init_I = 1, time_points = seq(0, 21, by = 0.1) )
si_continuous( N = 10, beta = 0.05, type = c("frequency", "density"), init_I = 1, time_points = seq(0, 21, by = 0.1) )
time_points |
si_continuous(N=10, type="density") |> ggplot2::autoplot() si_continuous(N=10, type="frequency") |> ggplot2::autoplot()
si_continuous(N=10, type="density") |> ggplot2::autoplot() si_continuous(N=10, type="frequency") |> ggplot2::autoplot()
Title
si_discrete( N = 10, beta = 0.05, type = c("frequency", "density"), init_I = 1, time_step = 1/24, max_time = 21 )
si_discrete( N = 10, beta = 0.05, type = c("frequency", "density"), init_I = 1, time_step = 1/24, max_time = 21 )
init_I |
si_discrete(N=10, type="density") |> ggplot2::autoplot() si_discrete(N=10, type="frequency") |> ggplot2::autoplot()
si_discrete(N=10, type="density") |> ggplot2::autoplot() si_discrete(N=10, type="frequency") |> ggplot2::autoplot()
Title
sirs_det( S = 99, I = 1, R = 0, beta = 0.25, gamma = 0.2, delta = 0.05, transmission_type = "frequency", time_step = 1L, max_time = 100L )
sirs_det( S = 99, I = 1, R = 0, beta = 0.25, gamma = 0.2, delta = 0.05, transmission_type = "frequency", time_step = 1L, max_time = 100L )
max_time |
Title
sirs_stoc( S = 99, I = 1, R = 0, beta = 0.25, gamma = 0.2, delta = 0.05, iterations = 1, transmission_type = "frequency", time_step = 1L, max_time = 100L )
sirs_stoc( S = 99, I = 1, R = 0, beta = 0.25, gamma = 0.2, delta = 0.05, iterations = 1, transmission_type = "frequency", time_step = 1L, max_time = 100L )
max_time |
General within-group model class
new()
WithinGroupModel$new( model_type = c("sirs"), update_type = c("deterministic", "stochastic"), transmission_type = c("frequency", "density"), time_step = 1L )
update()
WithinGroupModel$update(time_step = self$time_step)
check_state()
WithinGroupModel$check_state()
run()
WithinGroupModel$run( n_steps, time_step = self$time_step, include_current = self$time == 0 )
clone()
The objects of this class are cloneable with this method.
WithinGroupModel$clone(deep = FALSE)
deep
Whether to make a deep clone.