EpiNow21.5.2 package

Estimate Real-Time Case Counts and Time-Varying Epidemiological Parameters

clean_nowcasts

Clean Nowcasts for a Supplied Date

clean_regions

Clean Regions

collapse

Collapse nonparametric distributions in a <dist_spec>

construct_output

Construct Output

convert_to_logmean

Convert mean and sd to log mean for a log normal distribution

convert_to_logsd

Convert mean and sd to log standard deviation for a log normal distrib...

convert_to_natural

Internal function for converting parameters to natural parameters.

create_initial_conditions

Create Initial Conditions Generating Function

fit_model_approximate

Fit a Stan Model using an approximate method

fit_model_with_nuts

Fit a Stan Model using the NUTs sampler

fix_dist

Fix the parameters of a <dist_spec>

forecast_infections

Forecast infections from a given fit and trajectory of the time-varyin...

get_generation_time

Get a Literature Distribution for the Generation Time

get_incubation_period

Get a Literature Distribution for the Incubation Period

get_parameters

Get parameters of a parametric distribution

get_pmf

Get the probability mass function of a nonparametric distribution

get_raw_result

Get a Single Raw Result

new_dist_spec

Internal function for generating a dist_spec given parameters and a ...

plot.estimate_truncation

Plot method for estimate_truncation

plot_CrIs

Plot EpiNow2 Credible Intervals

sd_dist

Returns the standard deviation of one or more delay distribution

stan_vb_opts

Stan Variational Bayes Options

summarise_key_measures

Summarise rt and cases

summarise_results

Summarise Real-time Results

summary.epinow

Summary output from epinow

create_stan_delays

Create delay variables for stan

add_day_of_week

Adds a day of the week vector

adjust_infection_to_report

Adjust from Case Counts by Infection Date to Date of Report

allocate_delays

Allocate Delays into Required Stan Format

allocate_empty

Allocate Empty Parameters to a List

apply_tolerance

Applies a threshold to all nonparametric distributions in a <dist_spec...

backcalc_opts

Back Calculation Options

bootstrapped_dist_fit

Fit a Subsampled Bootstrap to Integer Values and Summarise Distributio...

c.dist_spec

Combines multiple delay distributions for further processing

calc_CrI

Calculate Credible Interval

calc_CrIs

Calculate Credible Intervals

calc_summary_measures

Calculate All Summary Measures

calc_summary_stats

Calculate Summary Statistics

check_reports_valid

Validate data input

check_stan_delay

Validate probability distribution for passing to stan

convolve_and_scale

Convolve and scale a time series

copy_results_to_latest

Copy Results From Dated Folder to Latest

create_backcalc_data

Create Back Calculation Data

create_clean_reported_cases

Create Clean Reported Cases

create_complete_cases

Create complete cases

create_delay_inits

Create initial conditions for delays

create_future_rt

Construct the Required Future Rt assumption

create_gp_data

Create Gaussian Process Data

create_obs_model

Create Observation Model Settings

create_rt_data

Create Time-varying Reproduction Number Data

create_shifted_cases

Create Delay Shifted Cases

create_stan_args

Create a List of Stan Arguments

create_stan_data

Create Stan Data Required for estimate_infections

delay_opts

Delay Distribution Options

discretise

Discretise a <dist_spec>

dist_fit

Fit an Integer Adjusted Exponential, Gamma or Lognormal distributions

dist_skel

Distribution Skeleton

dist_spec

Specify a distribution.

get_distribution

Get the distribution of a dist_spec()

Distributions

Probability distributions

epinow

Real-time Rt Estimation, Forecasting and Reporting

EpiNow2-package

EpiNow2: Estimate Real-Time Case Counts and Time-Varying Epidemiologic...

epinow2_cmdstan_model

Load and compile an EpiNow2 cmdstanr model

epinow2_rstan_model

Load an EpiNow2 rstan model.

epinow2_stan_model

Return a stan model object for the appropriate backend

estimate_delay

Estimate a Delay Distribution

estimate_infections

Estimate Infections, the Time-Varying Reproduction Number and the Rate...

estimate_secondary

Estimate a Secondary Observation from a Primary Observation

estimate_truncation

Estimate Truncation of Observed Data

estimates_by_report_date

Estimate Cases by Report Date

expose_stan_fns

Expose internal package stan functions in R

extract_CrIs

Extract Credible Intervals Present

filter_opts

Filter Options for a Target Region

fit_model

Fit a model using the chosen backend.

extract_inits

Generate initial conditions from a Stan fit

extract_parameter

Extract Samples for a Parameter from a Stan model

extract_parameter_samples

Extract Parameter Samples from a Stan Model

extract_params

Extract parameter names

extract_samples

Extract all samples from a stan fit

extract_single_dist

Extract a single element of a composite <dist_spec>

extract_stan_param

Extract a Parameter Summary from a Stan Object

extract_static_parameter

Extract Samples from a Parameter with a Single Dimension

forecast_secondary

Forecast Secondary Observations Given a Fit from estimate_secondary

format_fit

Format Posterior Samples

gamma_dist_def

Generate a Gamma Distribution Definition Based on Parameter Estimates

generation_time_opts

Generation Time Distribution Options

get_dist

Get a Literature Distribution

get_dist_spec_id

Perform checks for <dist_spec> get_... functions

get_regional_results

Get Combined Regional Results

get_regions

Get Folders with Results

get_regions_with_most_reports

Get Regions with Most Reported Cases

get_seeding_time

Estimate seeding time from delays and generation time

gp_opts

Approximate Gaussian Process Settings

growth_to_R

Convert Growth Rates to Reproduction numbers.

init_cumulative_fit

Generate initial conditions by fitting to cumulative cases

lognorm_dist_def

Generate a Log Normal Distribution Definition Based on Parameter Estim...

lower_bounds

Get the lower bounds of the parameters of a distribution

make_conf

Format Credible Intervals

map_prob_change

Categorise the Probability of Change for Rt

match_output_arguments

Match User Supplied Arguments with Supported Options

max.dist_spec

Returns the maximum of one or more delay distribution

mean.dist_spec

Returns the mean of one or more delay distribution

natural_params

Get the names of the natural parameters of a distribution

obs_opts

Observation Model Options

opts_list

Return an _opts List per Region

plot.dist_spec

Plot PMF and CDF for a dist_spec object

plot.epinow

Plot method for epinow

plot.estimate_infections

Plot method for estimate_infections

plot.estimate_secondary

Plot method for estimate_secondary

plot_estimates

Plot Estimates

plot_summary

Plot a Summary of the Latest Results

plus-.dist_spec

Creates a delay distribution as the sum of two other delay distributio...

print.dist_spec

Prints the parameters of one or more delay distributions

process_region

Process regional estimate

process_regions

Process all Region Estimates

R_to_growth

Convert Reproduction Numbers to Growth Rates

report_summary

Provide Summary Statistics for Estimated Infections and Rt

regional_epinow

Real-time Rt Estimation, Forecasting and Reporting by Region

regional_runtimes

Summarise Regional Runtimes

regional_summary

Regional Summary Output

report_cases

Report case counts by date of report

report_plots

Report plots

rstan_opts

Rstan Options

rstan_sampling_opts

Rstan Sampling Options

rstan_vb_opts

Rstan Variational Bayes Options

rt_opts

Time-Varying Reproduction Number Options

run_region

Run epinow with Regional Processing Code

sample_approx_dist

Approximate Sampling a Distribution using Counts

save_estimate_infections

Save Estimated Infections

save_input

Save Observed Data

setup_target_folder

Setup Target Folder for Saving

secondary_opts

Secondary Reports Options

set_dt_single_thread

Set to Single Threading

setup_default_logging

Setup Default Logging

setup_dt

Convert to Data Table

setup_future

Set up Future Backend

setup_logging

Setup Logging

simulate_infections

Simulate infections using the renewal equation

simulate_secondary

Simulate secondary observations from primary observations

stan_laplace_opts

Stan Laplace algorithm Options

stan_opts

Stan Options

stan_pathfinder_opts

Stan pathfinder algorithm Options

stan_sampling_opts

Stan Sampling Options

summary.estimate_infections

Summary output from estimate_infections

trunc_opts

Truncation Distribution Options

update_horizon

Updates Forecast Horizon Based on Input Data and Target

update_secondary_args

Update estimate_secondary default priors

Estimates the time-varying reproduction number, rate of spread, and doubling time using a range of open-source tools (Abbott et al. (2020) <doi:10.12688/wellcomeopenres.16006.1>), and current best practices (Gostic et al. (2020) <doi:10.1101/2020.06.18.20134858>). It aims to help users avoid some of the limitations of naive implementations in a framework that is informed by community feedback and is actively supported.

  • Maintainer: Sebastian Funk
  • License: MIT + file LICENSE
  • Last published: 2024-05-16