Learn R Programming

BRugs (version 0.9-2.1)

modelCompile: Compiling the model

Description

This function builds the data structures needed to carry out MCMC sampling.

Usage

modelCompile(numChains = 1)

Value

When the model has been successfully compiled, ‘model compiled’ message should be printed.

Arguments

numChains

Simulation is carried out for numChains chains.

Details

The model is checked for completeness and consistency with the data. A node called ‘deviance’ is automatically created which calculates minus twice the log-likelihood at each iteration, up to a constant. This node can be used like any other node in the graphical model.

See Also

BRugs, help.WinBUGS