modelCompile | R Documentation |
This function builds the data structures needed to carry out MCMC sampling.
modelCompile(numChains = 1)
numChains |
Simulation is carried out for |
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.
When the model has been successfully compiled, ‘model compiled’ message should be printed.
This command becomes active once the model has been successfully checked (see modelCheck
).
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.
BRugs
, help.WinBUGS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.