Skip to contents

[Stable] Uses the output of create_stan_data() to create a function which can be used to sample from the prior distributions (or as close as possible) for parameters. Used in order to initialise each stan chain within a range of plausible values.

Usage

create_initial_conditions(stan_data, params)

Arguments

stan_data

A list of data as produced by create_stan_data().

params

A list of <EpiNow2.params> as created by make_param()

Value

An initial condition generating function