get_ab: Get Alpha and Beta

Description Usage Arguments Details Value

View source: R/get_ab.R

Description

Get alpha and beta parameters given output of an MSOM model run in Stan or JAGS.

Usage

1
get_ab(iD, o, yr)

Arguments

iD

inputData element from output of run_msom

o

out element from output of run_msom

yr

the year corresponding to input

Details

Gets the alpha and beta parameters from the msom. Alpha parameters are related to true presence of species, beta parameters are related to detection.

Value

A data.table with iterations of all alpha and beta parameters, which are species-specific. Columns for chain, parameter, value (value is a sample of the posterior), par (alpha or beta), ab_ind (which alpha/ beta parameter, which is the first dimension in parameter), spp_id (species index, second dimension in parameter), spp (species name), and year.


rBatt/trawlDiversity documentation built on Aug. 14, 2021, 1:01 p.m.