createBUGSdata: Create bugs data for model with or without age data.

Description Usage Arguments Value

Description

This function creates bugs data (bdat).

Usage

1
createBUGSdata(dat, input, priors = NULL, allData = FALSE)

Arguments

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" or "SS", SRfunction, includeMarineSurvival, includeFlow

priors

the parameters for the prior distributions used in the JAGS models.

allData

if allData=TRUE the data for both model types is returned. If allData=FALSE, just the data necessary for the specified model is returned.

Value

dataframe returns a list with the data and priors formatted as input for the JAGS model.


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