The data needs to be separated by column and covariates reflect data for each positive and negative animal sampled. Example code is just an abbreviated version of data but each piece is separated by a comma after parenthesis for each variable. Note that the cell id is also necessary to include in the Load Data section. If the data is loaded successfully, the bottom left corner of the screen will read data loaded (Fig. 9.3).

list(NumFarms = 762, pos=c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
cellid=c(24,31,23,31,31,23,23,31,31,31,24,24,31,35,31,24,31),
AP5yGrid=c(0,0,4.545454545,0,0,4.545454545,4.545454545,0)

Figure 9.3

Figure 9.3: Loading the data into WinBUGS.