epiprocess 0.1.0
Implemented core functionality, vignettes
- Classes
epi_df
: specializedtbl_df
for geotemporal epidemiological time
series data, with optional metadata recording other key columns (e.g.,
demographic breakdowns) andas_of
what time/version this data was
current/published. Associated functions:as_epi_df
converts to anepi_df
, guessing thegeo_type
,
time_type
,other_keys
, andas_of
if not specified.as_epi_df.tbl_ts
andas_tsibble.epi_df
automatically set
other_keys
andkey
&index
, respectively.epi_slide
applies a user-supplied computation to a sliding/rolling
time window and user-specified groups, adding the results as new
columns, and recycling/broadcasting results to keep the result size
stable. Allows computation to be provided as a function,purrr
-style
formula, or tidyeval dots. Usesslider
underneath for efficiency.epi_cor
calculates Pearson, Kendall, or Spearman correlations
between two (optionally time-shifted) variables in anepi_df
within
user-specified groups.- Convenience function:
is_epi_df
.
epi_archive
: R6 class for version (patch) data for geotemporal
epidemiological time series data sets. Comes with S3 methods and regular
functions that wrap around this functionality for those unfamiliar with R6
methods. Associated functions:as_epi_archive
: prepares anepi_archive
object from a data frame
containing snapshots and/or patch data for every available version of
the data set.as_of
: extracts a snapshot of the data set as of some requested
version, inepi_df
format.epix_slide
,<epi_archive>$slide
: similar toepi_slide
, but for
epi_archive
s; for each requestedref_time_value
and group, applies
a time window and user-specified computation to a snapshot of the data
as ofref_time_value
.epix_merge
,<epi_archive>$merge
: likemerge
forepi_archive
s,
but allowing for the last version of each observation to be carried
forward to fill in gaps inx
ory
.- Convenience function:
is_epi_archive
.
- Additional functions
growth_rate
: estimates growth rate of a time series using one of a few
built-inmethod
s based on relative change, linear regression,
smoothing splines, or trend filtering.detect_outlr
: applies one or more outlier detection methods to a given
signal variable, and optionally aggregates the outputs to create a
consensus result.detect_outlr_rm
: outlier detection function based on a
rolling-median-based outlier detection function; one of the methods
included indetect_outlr
.detect_outlr_stl
: outlier detection function based on a seasonal-trend
decomposition using LOESS (STL); one of the methods included in
detect_outlr
.
New Contributors
- @ryantibs made their first contribution in #13
- @elray1 made their first contribution in #19
- @qpmnguyen made their first contribution in #37
- @jacobbien made their first contribution in #44
- @rafaelcatoia made their first contribution in #43
- @dshemetov made their first contribution in #59
Full Changelog: https://github.com/cmu-delphi/epiprocess/commits/v0.1.0