Description Usage Arguments Value Functions
View source: R/bugsdataconversion.R
For converting values for array-valued parameters from the bugs variable format to an array
1 2 3 4 5 | bugsvar2array(values, varname, rowidx, colidx)
bugsvar2matrix(values, varname, rowidx, colidx)
matrix2bugsvar(theta, name)
|
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 |
a named vector. Names are given by name and the index in the array
bugsvar2matrix
: For converting values for array-valued parameters from the bugs variable format to a matrix
matrix2bugsvar
: Converts a matrix of parameter values to bugs variable format
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.