oubtreaker2 provides a platform for reconstructing densely sampled outbreaks using epidemiological and genetic data. See introduction vignette for a worked example.
To install the current stable, CRAN version of the package, type:
install.packages("outbreaker2")
To benefit from the latest features and bug fixes, install the development, github version of the package using:
devtools::install_github("reconhub/outbreaker2")
Note that this requires the package devtools installed.
The main functions of the package include:
outbreaker
: the returned object is an instance of the (S3) class outbreaker_chains.
plot
: this method (see ?plot.outbreaker_chains
for details) plots outbreaker_chains objects.
summary
: this method (see ?summary.outbreaker_chains
for details) provides summaries for the various outputs of outbreaker2, stored in an outbreaker_chains object.
outbreaker_data
: function processing input data.
create_config
: function creating default settings, also used for specifying customised settings for outbreaker2.
custom_priors
: function used for specifying customised functions to be used as priors in outbreaker2.
custom_likelihoods
: function used for specifying customised functions to be used for likelihood computation in outbreaker2.
custom_moves
: function used for specifying customised functions to be used for moving parameters and augmented data in outbreaker2.
outbreaker2 uses many functions internally which are not visible to the user when loading the package. However, some of these functions will be useful when designing custom likelihoods or movement functions, or when contributing code. The most useful ones are C++ functions bound to R using Rcpp. The list of these functions is:
env <- asNamespace("outbreaker2") ls(envir = env, pattern = "^cpp")
See the vignette on Rcpp API for a detail of these functions.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.