calcInitVals: Calculate initial values for MCMC.

Description Usage Arguments Value

Description

calcInitVals computes initial values for MCMC algorithm used to compute the posterior distribution for the model parameters.

Usage

1
calcInitVals(mlEst, dat, input, bdat, sims = NULL)

Arguments

mlEst

The maximum likelihood estimate for the four SR parameters: log(prod), log(capacity), log(msCoef), log(flowCoef). Output from findOptimum().

dat

data from the A & P file

input

a list with the other values needed for a DM run. The following are examples naturalMort, analysisType = "DM", SRfunction, includeMarineSurvival, includeFlow

bdat

The in a format appropriate for JAGS implementation of the model.

sims

MCMC simulations from a previous fit. If sims=NULL all initial values are based on estimates derived from the data.

Value

A list with initial values for prod (production), logCap (log capacity), msCoef (the coefficient for marine survival), flowCoef (the coeficient for stream survival), rMu and maturationRate_logit.


eeholmes/DM documentation built on May 26, 2019, 3:36 p.m.