create_gp_data: Create Gaussian Process Data

create_gp_dataR Documentation

Create Gaussian Process Data

Description

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

Usage

create_gp_data(gp = gp_opts(), data)

Arguments

gp

A list of options as generated by gp_opts() to define the Gaussian process. Defaults to gp_opts(). Set to NULL to disable the Gaussian process.

data

A list containing the following numeric values: t, seeding_time, horizon.

Value

A list of settings defining the Gaussian process

See Also

gp_opts()

Examples

## Not run: 
# 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)

## End(Not run)

EpiNow2 documentation built on Oct. 31, 2024, 5:09 p.m.