gen_ssm_inits: Generate initial values for a state-space SRA fit

Description Usage Arguments

View source: R/2_gen_ssm_inits.R

Description

Takes the output of the SimFit functions to prepare for fitting a state-space spawner recruit model using JAGS

Usage

1
gen_ssm_inits(params, obs, maturity, n_chains)

Arguments

params

a list object created by SimFit::init_sim() or kusko_data_prep()$params. Contains the driving parameters and dimensional variables.

obs

a list object created by the functions that generate observations in the SimFit package or the kusko_data_prep()$obs function.

maturity

a character vector of length 1: either "simple" or "complex". If the latter, then initial values will be generated for the dispersion parameter of the Dirichlet distribution that generates brood year specific maturation schedules.

n_chains

a numeric vector of length 1: the number of MCMC chains to generate initial values for


bstaton1/FitSR documentation built on Aug. 23, 2019, 11:13 a.m.