make_tmbstan_inits: Make initial values list for tmbstan

Description Usage Arguments

View source: R/make_tmbstan_inits.R

Description

make_tmbstan_inits makes a list of initial values for use by tmbsta::tmbstan

Usage

1
2
3
4
5
6
7
make_tmbstan_inits(
  obj,
  cores,
  amount = 1,
  upper = rep(Inf, length(obj$par)),
  lower = rep(-Inf, length(obj$par))
)

Arguments

obj

Compiled TMB object, either before or after optimization

cores

the number of cores to initialize

amount

difference plus or minus from obj$env$last.par used for a uniform jitter

upper

optional vector of upper bounds for fixed effects

lower

optional vector of lower bounds for fixed effects


James-Thorson/utilities documentation built on Feb. 6, 2022, 2:35 p.m.