set.values: Setting current values

setValuesR Documentation

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.

Details

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

Value

The number of values set.

See Also

infoNodeValues, BRugs, help.WinBUGS


BRugs documentation built on May 31, 2023, 7:19 p.m.

Related to set.values in BRugs...