Learn R Programming

R2WinBUGS (version 0.2-7)

decode.parameter.name: Decodes WinBUGS parameter names - intended for internal use only

Description

Decodes WinBUGS parameter names (e.g., beta[3,14] becomes beta with 2 indexes: 3 and 14) for use by the bugs.sims function.

Usage

decode.parameter.name(a)

Arguments

a
one element of the first column of codaIndex.txt

Value

  • list with elements
  • rootname of parameter, e.g. beta
  • dimensionnumber of indexes, e.g. 2
  • indexesindexes, e.g. 3 and 14
  • given a == "beta[3, 14]"

See Also

The main function to be called by the user is bugs.