Learn R Programming

BRugs (version 0.9-2.1)

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)

Value

The number of values set.

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.

See Also

infoNodeValues, BRugs, help.WinBUGS