Learn R Programming

BRugs (version 0.8-2)

setValues: Setting current values

Description

This function sets the current values of a variable for future iterations. Only stochastic nodes can be set using this facility, and logical nodes are then updated if necessary.

Usage

setValues(nodeLabel, values)

Arguments

nodeLabel
Character vector of length 1, name of a node in the model.
values
The values to be set, generated, e.g., by infoNodeValues.

Value

  • The number of values set.

Details

Current values of a node can be stored to be used later as initial values.

See Also

infoNodeValues, BRugs, help.WinBUGS