Part of the NIMBLE language
getParam(model, node, param, nodeFunctionIndex)
A NIMBLE model object
The name of a stochastic node in the model
The name of a parameter for the node
For internal NIMBLE use only
For example, suppose node 'x[1:5]' follows a multivariate normal distribution (dmnorm) in a model declared by BUGS code. getParam(model, 'x[1:5]', 'mean') would return the current value of the mean parameter (which may be determined from other nodes). The parameter requested does not have to be part of the parameterization used to declare the node. Rather, it can be any parameter known to the distribution. For example, one can request the scale or rate parameter of a gamma distribution, regardless of which one was used to declare the node.