next up previous contents index
Next: Miscellaneous numerical commands Up: Belief comparison diagrams Previous: Producing the diagram

Example

For an example we adapt a problem considered in [49] concerning predicting the yields of a main product and a by-product at different temperature settings for a certain chemical process. The construction of the model is shown in Figure 12.1 and Figure 12.2. The model construction is identical to that of [49], with the exception that an alternative model is created simultaneously in belief store number 2, by using the FVAR:  command to specify alternative variances for the error components in model 2.

For this simple example, we will compare adjustments for the four quantities in the base b by the two quantities in the base D, and then compare the adjustment of the element tex2html_wrap_inline38794 by D. Figure 12.3 shows how we arrange matters before using the general comparison macro shown in Figure 12.4. The name of the base being adjusted is supplied as the string main, whereas the name of the collection representing the information is supplied as the string info. At this point it is also necessary to ensure that node coordinates are given for the collection supplied as main. Finally, control passes to the @compare macro to perform the adjustments, carry out the comparisons, and draw the diagram. Notice that the macro is not completely general, as it is assumed therein that the alternative specifications are in belief stores 1 and 2.

  figure13716
Figure 12.1:  Model construction, part I

  figure13719
Figure 12.2:  Model construction, part II

  figure13722
Figure 12.3:  Arranging the comparison

  figure13725
Figure 12.4:  Making the comparison



David Wooff
Wed Oct 21 15:14:31 BST 1998