bugsvar2array: Converting Parameter Values in BUGS Name and Format to Arrays...

Description Usage Arguments Value Functions

View source: R/bugsdataconversion.R

Description

For converting values for array-valued parameters from the bugs variable format to an array

Usage

1
2
3
4
5
bugsvar2array(values, varname, rowidx, colidx)

bugsvar2matrix(values, varname, rowidx, colidx)

matrix2bugsvar(theta, name)

Arguments

values

is a list of values named according to the bugs variables names

varname

is the desired variable name (e.g. 'u.b')

rowidx

is a list of rows to extract, by number

colidx

is a list of columns to extract, by number

theta

is a parameter arrays

name

parameter

Value

a named vector. Names are given by name and the index in the array

Functions


sustainablefarms/linking-data documentation built on Oct. 28, 2020, 2:41 a.m.