makeModel: Make JAGS Model

Description Usage Arguments Details Value Author(s)

Description

Write the model file in JAGS syntax.

Usage

1
2
3
4
makeModel(family = "binomial", curve = "logistic", check.od = FALSE,
  od = FALSE, combine = is.null(random), random = NULL, L50 = NULL,
  SR = NULL, phi = NULL, delta = NULL, priors = NULL,
  length.dist = "iid", paired, file = tempfile(), show.info = TRUE, ...)

Arguments

family

"logistic" (default) or "poisson", the family for the likelihood

curve

"logistic" or "richards", the type of selection curve to be fitted (will likely allow other options, for example "Bspline", future)

check.od

logical, if TRUE, then overdispersion estimates will be produced

od

logical, if TRUE, the model will be fit allowing for overdispersion

combine

logical, if TRUE, then the "combined hauls" approach is used, otherwise a hierarchical approach is used.

random

vector of parameters to have hierarchical or random effects

L50

the formula for L50, default is L50 = ~haul

SR

the formula for SR, default is SR = ~haul

phi

the formula for phi, default is phi = ~haul

delta

the formula for delta, default is delta = ~1

priors

the prior distributions for specified parameters. See details.

length.dist

"iid" or "multinomial", the type of length distribution for the lambda parameters. See details for more information.

paired

whether the data are paired or not

file

the file name to save the JAGS model in. If NULL, then a temporary file is created

show.info

logical, if FALSE, the package information will not be printed

...

additional arguments

Details

A whole lot of fancyness that makes the JAGS model.

Value

NULL?

Author(s)

Tom Elliott


tmelliott/bsm documentation built on May 31, 2019, 4:38 p.m.