modelRN {BRugs}R Documentation

State of Random Number Generator

Description

Set the starting state of the random number generator.

Usage

modelSetRN(state)

Arguments

state

An integer from 1 to 14. The internal state of the OpenBUGS random number generator can be set to one of 14 predefined states. Each predefined state is 10^12 draws apart to avoid overlap in random number sequences.

Details

Warning: modelSetRN must not be used before modelCompile has been executed successfully! The state can be changed after initial values are generated but before updates have been performed, however, this is not recommended.

See Also

BRugs, help.WinBUGS


[Package BRugs version 0.9-2.1 Index]