| node.names | R Documentation |
These utility functions allow the user to obtain the names of nodes within
a compiled JAGS model. The node.names function returns the names of all nodes
within the graph (without array indices), and the observed.stochastic.nodes
function returns only the node names and incidies that represent observed
stochastic variables. The expand.name function converts a base array name
(as returned by node.names) along with a provided vector of array dimensions
into the vector of node names as returned by observed.stochastic.nodes
and the coda.samples function.
node.names(model)
observed.stochastic.nodes(model)
expand.name(name, dimensions)
model |
a jags model object |
name |
a length-1 character string giving the variable name to expand |
dimensions |
an integer vector giving the dimensions of the variable |
Matt Denwood
data(LINE)
LINE$recompile()
node.names(LINE)
observed.stochastic.nodes(LINE)
expand.name("Y", 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.