Skip to contents

Given a set of prior parameters and stan data, initialize the model near the center of the prior distribution

Usage

get_inits_for_one_chain(stan_data, stdev = 0.01)

Arguments

stan_data

a list of data elements that will be passed to stan

stdev

a numeric value indicating the standard deviation to sample from when initializing, particularly from a standard normal. Also acts as a multiplier on the prior standard deviation, to restrict the initial value to be sampled from the center of the prior. Default is 0.01

Value

a list of initial values for each of the parameters in the wwinference model