model.gen.inits: Generating initial values

Description Usage Details Value Note See Also

Description

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

Usage

1

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.

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.

Note

This function can be executed once the model has been successfully compiled (modelCompile), and can no longer be executed once the model has been initialized.

If an attempt is made to execute this function in an inappropriate context the generic error message ‘command is not allowed (greyed out)’ is displayed.

See Also

BRugs, help.WinBUGS



Search within the BRugs package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.