model.data: Loading the data

modelDataR Documentation

Loading the data

Description

This function loads data into the statistical model.

Usage

modelData(fileName = "data.txt")

Arguments

fileName

Filename(s) of file(s) containing the data in OpenBUGS format.

Value

If any syntax errors or data inconsistencies are detected an error message is displayed. Corrections can be made to the data without returning to the ‘check model’ stage. When the data have been loaded successfully the message ‘data loaded’ should appear.

Note

This function can be executed once a model has been successfully checked (see modelCheck), it can no longer be executed once the model has been successfully compiled.

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


BRugs documentation built on May 31, 2023, 7:19 p.m.

Related to model.data in BRugs...