Learn R Programming

BRugs (version 0.9-2.1)

modelGenInits: Generating initial values

Description

This function attempts to generate initial values by sampling either from the prior or from an approximation to the prior.

Usage

modelGenInits()

Arguments

Value

If the function is successful the message ‘initial values generated: model initialized’

is displayed otherwise the message ‘could not generate initial values’ is displayed.

Details

In the case of discrete variables a check is made that a configuration of zero probability is not generated. This function will generate extreme values if any of the priors are very vague.

See Also

BRugs, help.WinBUGS