Learn R Programming

EpiNow2 (version 1.3.4)

create_backcalc_data: Create Back Calculation Data

Description

[Stable] Takes the output of backcalc_opts() and converts it into a list understood by stan.

Usage

create_backcalc_data(backcalc = backcalc_opts)

Value

A list of settings defining the Gaussian process

Arguments

backcalc

A list of options as generated by backcalc_opts() to define the back calculation. Defaults to backcalc_opts().

Author

Sam Abbott

See Also

backcalc_opts

Examples

Run this code
# define input data required
data <- list(
  t = 30,
  seeding_time = 7,
  horizon = 7
)

# default gaussian process data
create_gp_data(data = data)

# settings when no gaussian process is desired
create_gp_data(NULL, data)

# custom lengthscale
create_gp_data(gp_opts(ls_mean = 14), data)

Run the code above in your browser using DataLab