Man pages for EpiNow2
Estimate and Forecast Real-Time Infection Dynamics

add_breakpointsAdd breakpoints to certain dates in a data set.
add_day_of_weekAdds a day of the week vector
add_horizonAdd missing values for future dates
allocate_delaysAllocate Delays into Required Stan Format
allocate_emptyAllocate Empty Parameters to a List
apply_default_cdf_cutoffApply default CDF cutoff to a <dist_spec> if it is...
apply_zero_thresholdConvert zero case counts to 'NA' (missing) if the 7-day...
as_forecast_sampleConvert EpiNow2 model output to a 'forecast_sample' object
backcalc_optsBack Calculation Options
bootstrapped_dist_fitFit a Subsampled Bootstrap to Integer Values and Summarise...
bound_distDefine bounds of a <dist_spec>
build_np_est_dataBuild Stan data for estimated nonparametric delays
calc_CrICalculate Credible Interval
calc_CrIsCalculate Credible Intervals
calc_summary_measuresCalculate All Summary Measures
calc_summary_statsCalculate Summary Statistics
cash-.epinowExtract elements from epinow objects with deprecation errors
cash-.estimate_infectionsExtract elements from estimate_infections objects with...
cash-.estimate_secondaryExtract elements from estimate_secondary objects with...
c.dist_specCombines multiple delay distributions for further processing
check_generation_timeValidate probability distribution for using as generation...
check_reports_validValidate data input
check_simulation_inputValidate simulation input data frame
check_sparse_pmf_tailCheck that PMF tail is not sparse
check_stan_delayValidate probability distribution for passing to stan
check_truncation_lengthCheck and warn if truncation distribution is longer than...
check_truncation_obs_optsCheck that obs_opts settings unused by estimate_truncation...
clean_nowcastsClean Nowcasts for a Supplied Date
clean_regionsClean Regions
collapseCollapse nonparametric distributions in a <dist_spec>
combine_tv_and_static_paramsCombine time-varying and static parameters
construct_outputConstruct Output
convert_to_logmeanConvert mean and sd to log mean for a log normal distribution
convert_to_logsdConvert mean and sd to log standard deviation for a log...
convert_to_naturalInternal function for converting parameters to natural...
convolve_and_scaleConvolve and scale a time series
copy_results_to_latestCopy Results From Dated Folder to Latest
create_backcalc_dataCreate Back Calculation Data
create_delay_initsCreate initial conditions for delays
create_future_rtConstruct the Required Future Rt assumption
create_gp_dataCreate Gaussian Process Data
create_infection_summaryCreate summary output from infection estimation objects
create_initial_conditionsCreate Initial Conditions Generating Function
create_obs_modelCreate Observation Model Settings
create_rt_dataCreate Time-varying Reproduction Number Data
create_sampling_log_messageCreate sampling log message
create_shifted_casesCreate Delay Shifted Cases
create_stan_argsCreate a List of Stan Arguments
create_stan_dataCreate Stan Data Required for estimate_infections
create_stan_delaysCreate delay variables for stan
create_stan_paramsCreate parameters for stan
delay_optsDelay Distribution Options
discrete_pmfDiscretised probability mass function
discretiseDiscretise a <dist_spec>
dist_fitFit an Integer Adjusted Exponential, Gamma or Lognormal...
dist_id_to_nameGet distribution name from primarycensored Stan dist_id
DistributionsProbability distributions
dot-extract_to_dist_specExtract parameters and convert to dist_spec
dot-get_dist_idMap distribution name to primarycensored ID
dot-get_param_namesMap distribution name to parameter names
dot-prepare_linelist_dataPrepare linelist data for delay estimation
epinowReal-time Rt Estimation, Forecasting and Reporting
epinow2_cmdstan_modelLoad and compile an EpiNow2 cmdstanr model
EpiNow2-packageEpiNow2: Estimate and Forecast Real-Time Infection Dynamics
epinow2_rstan_modelLoad an EpiNow2 rstan model.
epinow2_stan_modelReturn a stan model object for the appropriate backend
equals-.dist_specCompares two delay distributions
estimate_delayEstimate a Delay Distribution
estimate_distEstimate a delay distribution using primarycensored
estimate_infectionsEstimate Infections, the Time-Varying Reproduction Number and...
estimates_by_report_dateEstimate Cases by Report Date
estimate_secondaryEstimate a Secondary Observation from a Primary Observation
estimate_truncationEstimate truncation of observed data
example_confirmedExample Confirmed Case Data Set
example_generation_timeExample generation time
example_incubation_periodExample incubation period
example_reporting_delayExample reporting delay
example_truncatedExample Case Data Set with Truncation
expose_stan_fnsExpose internal package stan functions in R
extract_CrIsExtract Credible Intervals Present
extract_delay_paramsExtract delay distributions from a fitted model
extract_delaysExtract samples from all delay parameters
extract_initsGenerate initial conditions from a Stan fit
extract_latent_stateExtract samples for a latent state from a Stan model
extract_parametersExtract samples from all parameters
extract_paramsExtract parameter names
extract_samplesExtract all samples from a stan fit
extract_scalar_paramsExtract scalar parameters from a fitted model
extract_single_distExtract a single element of a composite <dist_spec>
extract_stan_paramExtract a parameter summary from a Stan object
fill_missingFill missing data in a data set to prepare it for use within...
filter_leading_zerosFilter leading zeros from a data set.
filter_optsFilter Options for a Target Region
fit_modelFit a model using the chosen backend.
fit_model_approximateFit a Stan Model using an approximate method
fit_model_with_nutsFit a Stan Model using the NUTs sampler
fix_parametersFix the parameters of a <dist_spec>
forecast_infectionsForecast infections from a given fit and trajectory of the...
forecast_optsForecast options
forecast_secondaryForecast Secondary Observations Given a Fit from...
format_fitFormat Posterior Samples
format_quantile_predictionsFormat quantile predictions
format_sample_predictionsFormat sample predictions
format_samples_with_datesFormat raw Stan samples with dates and metadata
format_simulation_outputFormat Simulation Output from Stan
generation_time_optsGeneration Time Distribution Options
get_accumulateGet accumulation flags from data
get_distributionGet the distribution of a <dist_spec>
get_elementExtracts an element of a <dist_spec>
get_parametersGet parameters from distributions or fitted models
get_pmfGet the probability mass function of a nonparametric...
get_predictionsGet predictions from a fitted model
get_raw_resultGet a Single Raw Result
get_regional_resultsGet Combined Regional Results
get_regionsGet Folders with Results
get_regions_with_most_reportsGet Regions with Most Reported Cases
get_samplesGet posterior samples from a fitted model
get_seeding_timeEstimate seeding time from delays and generation time
gp_optsApproximate Gaussian Process Settings
growth_to_RConvert Growth Rates to Reproduction numbers.
is_constrainedCheck if a <dist_spec> is constrained, i.e. has a finite...
lapply_funcChoose a parallel or sequential apply function
lower_boundsGet the lower bounds of the parameters of a distribution
make_confFormat Credible Intervals
make_init_priorsBuild the stan-side init-prior data block from a list of...
make_paramInternal function to create a parameter list
map_prob_changeCategorise the Probability of Change for Rt
match_output_argumentsMatch User Supplied Arguments with Supported Options
max.dist_specReturns the maximum of one or more delay distribution
mean.dist_specReturns the mean of one or more delay distribution
merge_trunc_pred_obsMerge truncation predictions with observations for display
natural_paramsGet the names of the natural parameters of a distribution
ndistCalculate the number of distributions in a <dist_spec>
new_dist_specInternal function for generating a 'dist_spec' given...
nonparametric_pmf_dataBuild PMF data for the nonparametric branch of...
obs_optsObservation Model Options
opts_listForecast optiong
pack_init_priorPack a dist_spec into stan-side init-prior fields
pad_reported_casesPads reported cases with daily initial zeros
plot_CrIsPlot EpiNow2 Credible Intervals
plot.dist_specPlot PMF and CDF for a dist_spec object
plot.estimate_infectionsPlot method for estimate_infections
plot_estimatesPlot Estimates
plot.estimate_secondaryPlot method for estimate_secondary
plot.estimate_truncationPlot method for estimate_truncation
plot.forecast_infectionsPlot method for forecast_infections
plot.forecast_secondaryPlot method for forecast_secondary objects
plot_summaryPlot a Summary of the Latest Results
plus-.dist_specCreates a delay distribution as the sum of two other delay...
posterior_to_normalCreate a Normal distribution from posterior samples
prepare_truncation_obsPrepare truncation observations for Stan
print.dist_specPrints the parameters of one or more delay distributions
print.epinowfitPrint information about an object that has resulted from a...
process_regionProcess regional estimate
process_regionsProcess all Region Estimates
rdirichletDraw a single sample from a Dirichlet
reconstruct_delayReconstruct a dist_spec from stored stan data and posterior
reconstruct_nonparametricReconstruct a nonparametric delay distribution
reconstruct_parametricReconstruct a parametric delay distribution
regional_epinowReal-time Rt Estimation, Forecasting and Reporting by Region
regional_runtimesSummarise Regional Runtimes
regional_summaryRegional Summary Output
report_plotsReport plots
report_summaryProvide Summary Statistics for Estimated Infections and Rt
R_to_growthConvert Reproduction Numbers to Growth Rates
rt_optsTime-Varying Reproduction Number Options
run_regionRun epinow with Regional Processing Code
save_estimate_infectionsSave Estimated Infections
save_inputSave Observed Data
sdReturns the standard deviation of one or more delay...
secondary_optsSecondary Reports Options
select_plotsInternal helper function to select plots from those created...
set_dt_single_threadSet to Single Threading
setup_default_loggingSetup Default Logging
setup_dtConvert to Data Table
setup_futureSet up Future Backend
setup_loggingSetup Logging
setup_target_folderSetup Target Folder for Saving
simulate_infectionsSimulate infections using the renewal equation
simulate_secondarySimulate secondary observations from primary observations
stable_convolveNumerically stable convolution function for two pmf vectors
stan_laplace_optsStan Laplace algorithm Options
stan_optsStan Options
stan_pathfinder_optsStan pathfinder algorithm Options
stan_sampling_optsStan Sampling Options
stan_vb_optsStan Variational Bayes Options
sub-sub-.epinowExtract elements from epinow objects with bracket notation
sub-sub-.estimate_infectionsExtract elements from estimate_infections objects with...
sub-sub-.estimate_secondaryExtract elements from estimate_secondary objects with bracket...
summarise_key_measuresSummarise rt and cases
summarise_resultsSummarise Real-time Results
summary.epinowSummary output from epinow
summary.estimate_distSummarise results from estimate_dist
summary.estimate_infectionsSummary output from estimate_infections
summary.estimate_secondarySummarise results from estimate_secondary
summary.estimate_truncationSummarise results from estimate_truncation
summary.forecast_infectionsSummary output from forecast_infections
trunc_optsTruncation Distribution Options
update_horizonUpdates Forecast Horizon Based on Input Data and Target
update_secondary_argsUpdate estimate_secondary default priors
EpiNow2 documentation built on June 17, 2026, 1:07 a.m.