Releases: reconhub/projections
0.5.1
0.5.0
New functions
-
new function
merge_projections
permits to join different sets of
simulations, adapting the respective time windows accordingly -
new function
merge_add_projections
permits to add simulated case incidence
from different sets of simulations, adapting the respective time windows
accordingly; if objects contain different numbers of simulations, the shortest
ones are recycled as needed; also implemented as the operator+
-
new function
summary
will summariseprojections
objects by day, using a
range of pre-defined statistics (mean, sd, min, max, and user-defined
quantiles)
Fixes and improvements
-
bug fix for the use of time-varying R in
project
-
bug fix for
as.data.frame(..., long = TRUE)
-
more consistent handling of inputs for the serial interval; if provided as a
vector,si
now starts at a delay of 1 day, rather than 0 and assuming the
first entry is 0; fordistcrete
inputs, the mass forsi$d(0)
is now
ignored, and the rest of the distribution is rescaled accorindly to ensure the
PMF sums to 1 -
(documentation) more realistic serial interval distribution used for the Ebola
examples -
(internal) the force of infection is now calculated by the new internal
functioncompute_force_infection
-
(testing) revised sets of tests relying less on comparison to references,
but testing for meaningful output properties instead -
(testing) 100% coverage
projections 0.3.1
This is a maintenance release to work with incidence version 1.4.1. It now imports the S3 method get_dates()
from incidence.
0.3.0
projections 0.3.0
New features
This is a big release! Plenty of new features have been added, including:
-
projections
can now be subsetted like matrices usingx[i,j]
, or using the
functionsubset
-
new function
cumulate
to compute cumulative incidence forprojections
objects, akin to the similar function in theincidence
package -
much improved graphics;
plot
now call uponsadd_projections
, which
implements many options for plotting projections, including quantiles lines,
ribbon, and boxplots;add_projections
can also be used to add such plots to
an existingincidence
plot -
build_projections
can be used to build aprojections
object from an input
matrix and optional dates
First CRAN version
First release of the package!
New features
-
project
: a function generating projections from an existing incidence
object, a serial interval distribution, and a set of plausible reproduction
numbers ($R$ ); returns aprojections
object. -
plot
/print
: plotting and printing methods forprojections
objects. -
get_dates
/get_incidence
: accessors forprojections
objects. -
as.data.frame
: conversion fromprojections
objects todata.frame
.