makeData: Make JAGS Data from bsmdata Object

Description Usage Arguments Details Value Author(s)

Description

Creates the required data list for JAGS for a given model.

Usage

1
2
makeData(x, family = "binomial", combine = is.null(random), random = NULL,
  L50 = NULL, SR = NULL, phi = NULL, delta = NULL, ...)

Arguments

x

an object of class bsmdata, from the bsmData function

family

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

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 if random = TRUE

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

...

additional arguments

Details

Not much to know ...

Value

A list of data for JAGS

Author(s)

Tom Elliott


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