powered by
Decodes WinBUGS parameter names (e.g., beta[3,14] becomes beta with 2 indexes: 3 and 14) for use by the bugs.sims function - intended for internal use
beta[3,14]
beta
bugs.sims
decode.parameter.name(a)
list with elements:
name of parameter, e.g. beta
number of indexes, e.g. 2
indexes
indexes, e.g. 3 and 14
given a == "beta[3, 14]"
a == "beta[3, 14]"
one element of the first column of codaIndex.txt
codaIndex.txt
The main function to be called by the user is bugs.
bugs