1.5. Use of BayesianModeling

1.5.1 Use of the BayesianModeling to generate the syntax of the model

We will use the BayesianModeling to implement the model of binary regression with skew logit link for the data beetles.txt described in the previous section. To start using the program you must Open your data file before of choose the models for them.

1. Go to File > Open

1. Navigate to the directory that contains your dataset files. Select the data set file you want work. The program can open data file in ASCII format (.csv, .txt and .dat).

2. To select the model you want Click on Binary Regression button or Go to Models > Binary Regression.

3. This will open the dialog box “Binary Regression Data”.

4. Afterward, select the dependent variable and covariates variable you want. In this case y and x respectively. Click and drag the variables. Also, you must to indicate if will use all the data or only a part of them considering the options in Cases. In the example, select All.

5. Then, click Models. This will open the dialog box “Binary Regression Models”. Here you must to select the models that will be used, in this example only select the model skew-logit and do click in OK.

6. Two type of files are generated, corresponding for the selected models and for data. In this case Skew Logit Model and Binary Regression Data. Both files are readable in WinBUGS or OpenBUGS.

These two files will have to be saved with format txt, is to say Binary Regression Data.txt and Skew Logit Model.txt for its subsequent use.

To generate new models for other data is recommended to restart the program and follow the steps presented.