R: Get value of a parameter of a stochastic node in a model

getParam {nimble} | R Documentation

## Get value of a parameter of a stochastic node in a model

### Description

Part of the NIMBLE language

### Usage

    getParam(model, node, param, nodeFunctionIndex)

### Arguments

`model` | A NIMBLE model object
`node` | The name of a stochastic node in the model
`param` | The name of a parameter for the node
`nodeFunctionIndex` | For internal NIMBLE use only

### Details

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.

[Package nimble version 0.9.1 Index]