STA2201s06 Assignment 8


The file rest.dat contains the following variables for a sample of restaurants. We will pretend that all the variables are measured without error.

Let's fit a model in which the first four variables (basically representing restaurant size and advertising expenditures) are exogenous variables that are all related to one another. There is a straight arrow running from each exogenous variable to Sales, and another arrow from Sales to Capital improvement expenditures. There are arrows from both Sales and Capital improvement expenditures to Outlook.

One more arrow is in question, an arrow directly from Advertising expenditures to Outlook. That arrow is present in the full model, and absent in the reduced model. If the coefficient on that arrow is non-zero, it suggests that the management consultants may be directly influenced by advertising, and this would have some entertainment value.

Please conduct two tests of the null hypothesis. The Wald test will appear directly on the output as a t statistic. Please circle it on your printout and indicate whether you reject H0 at the 0.05 level. Also do a likelihood ratio test; make proc iml calculate the test statistic and the p-value. Circle them on the printout. Are the results of the two tests consistent with one another? What do you conclude about the management consultants?

If you are on Fisher and you do not want to deal with the data as they appear below, you can type (at the unix prompt)

cp /dos/brunner/public_html/2201s06/data/rest.dat .

The period is important; it refers to your current directory.

The first line of the data file consists of labels for the variables. SAS cannot use these, but it can ignore them. My SAS program includes the line

infile 'rest.dat' firstobs=2;

So the first observation starts on line 2.

 ID#  FT.EMPL  PT.EMPL  SEATS  AdvExp  CapExp  SALES  OUTLOOK
   1        8       30    200      10       0    480        2
   2        6       25    150      25     112    507        4
   3        0       17     46       6      53    210        5
   4        2       13     28       2       0    246        5
   5        .        .     44       1       0    148        2
   6        2        .     50       5       0     50        3
   7        0        5     50       4       0     72        2
   8        1        8    130       1       7     99        3
   9        2       10      .       0       8    160        4
  10        2       19     50       5      17    243        4
  11        3       12     64       4       6    200        4
  12       30       40    240     100     200   1000        4
  13       10       19    111       0       0    350        4
  14        6       16    125      11       0    550        3
  15        4       28    120      50      50    500        3
  16       13       47      .       0      88   1100        4
  17        7       15     92      17       0    416        3
  18       20       25     90      33       0    650        2
  19        1       16    150       3       0    292        5
  20       15       10     90      20      40    400        3
  21        0        0     15       0       0     42        3
  22        0        7     80       1      15    100        2
  23        0       10     76       0       0     75        4
  24        1       14     65       4       0    180        3
  25        0       20    178       6       0    201        4
  26        7       13    110      27     164    273        6
  27       51       80     60       0       0    150        4
  28        0        0      0       0       2     60        5
  29       35       45    150      36     600   1200        4
  30        4        8     60       5      10    247        3
  31       16       14     85       3       9    290        2
  32        2        2     25       3       1     58        2
  33       18       15     85       4       0    400        4
  34        4        4     20       4       0     75        3
  35        .        .    200       0       0      .        5
  36        6        3      0       0       0    144        4
  37        2        2      0       1       0     65        4
  38        .        .    210       0       0      .        3
  39        6       32    111      33       0    465        4
  40       10        5      0       0       0      .        5
  41       30       25    152      20      15    510        5
  42        9       16     62      22       0    440        3
  43       30       12    165      12     182    608        4
  44        3       18     68       8       6    200        3
  45        3        3     60       9       5     90        1
  46        0        7      0       1       1     45        5
  47        3        0      0       2       0     36        6
  48        8       10     52      12      15    249        4
  49        4       20     24       4      10    200        5
  50        1        4     70       4       0     80        2
  51       20        6     72      15      25    500        1
  52        0        8     68       6      13    125        2
  53        2        3     58       1       0    101        2
  54        0        6     46       1       2    110        4
  55       80       45    200      36       0   1200        3
  56       25        5    120       0       0      .        1
  57       15       50    200     188     940   4700        4
  58        0       12     10       1       0     48        3
  59       10       20      0       8      30    150        2
  60        2       18     62       7      74    185        1
  61        3        8     99       0       3    157        4
  62        5       45    120      19      56    621        6
  63       14        3    100       0      26    257        2
  64        1        3      0       4       0    137        2
  65        2       11    125       0       0    190        1
  66        .        .      0       0       0      .        1
  67       10       10     96      10      19    320        2
  68       20       15    140       7       0    650        5
  69       10       30    100      31     372    610        5
  70       20       28     48      15      15    385        2
  71        4       15    120      11     270    360        5
  72       20        3      0      14       0    276        1
  73       28        5    125      12     120    600        6
  74        2       14      0       7       0    330        2
  75       11        0     15       4      22    215        3
  76        2       70    250      51      64    425        3
  77       10        4     80      25      25    250        4
  78        1        2     30       0       0    120        2
  79        0        4     16       6      18     60        3
  80        0        4     34       7       8    141        3
  81       35       13    120      40     400    800        5
  82        .        .      0       2       8    207        3
  83       20       40    200      10     163   1016        5
  84        2        4     80      12       0     60        3
  85        6       14     80       6      31    309        3
  86        7       40      0      19     192    960        2
  87        3       18    220      15       0    150        3
  88        0        2     44       6       3     56        4
  89       10       15     55       5      13    250        6
  90       10        3     85      14      28    275        4
  91        4       13     77       0      75    150        5
  92       20        6    125      16       7    325        4
  93        2       10     65      22       6    110        5
  94        4       12     90      10      13    250        3
  95       13        6    100      11       0    550        3
  96        0        6     50       0       3    100        1
  97        3        0     30       1       0     32        3
  98       12       40    150       4      37    366        7
  99        3        2     50       1       2     70        5
 100        1       39     72       5      11    531        3
 101       10        4     43       0       0    225        4
 102        0        8      .       0       5    108        3
 103        3        2      0       0       0    100        3
 104        .        2     20       0       2     40        4
 105       15       25    140      38       0    750        4
 106        6       20    110       6       0    312        2
 107        0        5     56       3       3     50        2
 108        5        4     75       8       5    163        5
 109        0        0     32       0       1     75        1
 110        3       30     76       6      33    550        6
 111        3        9     80       0     276   3450        1
 112        4        6     60       2       2     50        3
 113        0        6      0       2       0     80        5
 114        1       11     36      22      44    435        3
 115        1        2      0       0       1     70        1
 116        5        0     62       8       0     78        1
 117        0        5     28       4      42    210        5
 118        2       18     50      22       0    280        4
 119        8        4     82      10       0    192        4
 120        2        7     28       0      17    116        4
 121        7       20    100       5       0    245        5
 122        0        0     80       0       0    110        1
 123        7        8     72      11       0    229        3
 124        4        7     96       0       0    275        4
 125        4        4     46       2       0    100        1
 126        5       12     90      32      65    647        4
 127        .        .      .       0       3    300        4
 128        0        0     70       8       0     54        7
 129        3       25     78       0       0    400        5
 130        1        5     55       1       2    120        2
 131       10       15     40       0       0      .        5
 132        1       15     27       4      11    179        1
 133        7        8     30       3       9    300        4
 134       10       22    125      25     625    500        3
 135        0       10     60       3      18    150        2
 136        3        4     42       3       3    135        3
 137       13        3     36       4      16    400        5
 138       30        8    200       0       0    480        1
 139       25       12    180      42     212    530        3
 140        0        2     20       0       0      .        5
 141       36        4     30      30      72    600        5
 142        7        3     50       0       0      .        4
 143        3        8     35       3       1    125        2
 144        4        0     51       0       0    382        1
 145        2        7    100       0       0      .        5
 146        4       12     50      10      20    200        3
 147       20       21    144      24     168    800        5
 148        2        5     50       1       0    144        4
 149        3        9     60       1       1    130        4
 150       25       35    127      30     505   1010        2
 151        0        2     25       0       3     60        5
 152        6       24     75      23      58    292        4
 153        6       14     75       5      56    100        3
 154        0        7     32       2       0     98        3
 155        7        7     90       3      15    250        2
 156        0       20      0       5       2    172        4
 157        1        9     74       0      17    145        3
 158        .        0      0       0       0      .        4
 159        .        .      .       0       0      .        1
 160        3        1      0       0       0      .        4
 161        1        1     12       0       0     37        3
 162        5       22     82       0       0      .        3
 163        4        1     35       0       0     77        4
 164        6        8     44       0       0    400        3
 165        .        .      .      20     200   1000        4
 166       26       13     95      13      38    250        2
 167        0        0     24       0       0     50        4
 168        1        6     70       6       7    120        1
 169       40        6     94      23     585    750        4
 170        6        3     60       2      15    190        5
 171        3        3     87       7       7    140        1
 172        0        8    100       1      42     80        4
 173        0        6     40       6       0     55        5
 174        8       35    196      21       0    690        5
 175        0       18    100       4       2    200        4
 176        0        0     34       0       1     28        4
 177        1        3     24       0       0     40        5
 178        0        2     10       0       0      2        4
 179        3       25     95       9       0    217        2
 180       10       10     20      25       0    250        4
 181       12       43    175      50       0    990        3
 182        0        4      0       0       0      2        4
 183        2        3     75      10      10     50        3
 184        5       14    110       9     435    290        7
 185        0        0      0       0       8     75        1
 186        0        0      .       0       0      .        1
 187       10       10     85      20      40    400        5
 188        2        4      0       0       0     30        3
 189        2        3     65       1       0     70        2
 190        3       13     16      10       0    250        2
 191       20       55     52      64     320   1600        5
 192        6        2     70      15       0    290        2
 193        8        4      0       8       4    203        4
 194        0        3     16       0       0      .        5
 195        0        0     50       1       5    100        2
 196       10       25    100       0       0    551        3
 197        6        7     85       9      22    220        3
 198        1       15    200      11      23    225        3
 199        0        4      0       7      20    140        3
 200        6        5     80       0       0    154        1
 201        0       30     75       0       0     39        4
 202       15       35     85       0       0    565        4
 203        1        4     75       0       0      0        3
 204       42       30    142      11     800   1096        2
 205        4        0     60       0       0     35        4
 206        5        7     30       3      11     53        5
 207       30       16      .       0      31    390        2
 208        2       16    104       0       0      .        3
 209        1        9     45       0       0      .        4
 210       18       20    132       5     125    500        5
 211        8        3     30       4       9    180        4
 212        1        2      0       2       4     89        6
 213        0        5      0       1       8     77        1
 214        2       35     94      28      14    460        1
 215       40       30    110      13     154    440        3
 216       12        0      0       1       4     56        5
 217        0        0      0       0       3     15        4
 218        0        7      .       0       0    150        5
 219      250       60    550     242   24192   8064        5
 220        1        8     20       0       0    200        3
 221        0        4     80       2       0     30        3
 222        0        3      0       0       0     71        5
 223        0        0      4       0       0     11        4
 224        2       13     44      13       5    267        1
 225        3        9     70      10      33    325        7
 226       10        3     70       8       0    155        1
 227       30       20    180      70    1000   1000        4
 228        1        6     54       2      26     85        3
 229       25       30    150       0     125    250        3
 230        1        4     55       1       2     30        2
 231        0        3      0       0       0     20        2
 232        .        .     40       0       0      .        .
 233        0        6     65      13       6    125        2
 234        6       25    150      43      94    720        4
 235       25      100    150       0       0      .        4
 236        5        6     30       5       7    240        1
 237        3       10     35       0       0     10        4
 238        7        3      0       2       0    240        5
 239        2        4      0       0       0     59        6
 240       40       50    170      54     216   1080        3
 241       18        5    120       9       2    225        1
 242        4       20      .       0       0      .        3
 243        4        2     43       7       5     70        2
 244        6       30      0       9     151    430        1
 245        5        8     62       2       0    198        4
 246       10        4     35       1       8     65        5
 247        0        9     43       1       2     69        2
 248       20       12    150       7       0    230        4
 249        0        .     40       3      63    250        4
 250        2       12      .       0     112    140        5
 251        2        6    130       9       9    180        5
 252        1        0     18       1       4     60        3
 253        1        2      0       0       0     80        1
 254        0        3     36       4       0     42        1
 255        .        2      0       0       0      8        4
 256        0       16    100       0       0    210        3
 257        4        1     42       2       0     95        3
 258        0        2     32       3      28     55        4
 259        3        2     30       6       1    121        5
 260        2        2     26       4       8     75        3
 261        8       32    205       0       0      .        1
 262        5       20     50      10      25    250        6
 263        0       15     70      22      22    220        4
 264        2       22     80       2      12    120        4
 265        .        .      0       2       0     25        2
 266       32        1    200      25       0    500        1
 267        2       15     80       0       0      .        3
 268        0       10     70      50      20    200        3
 269        1        3     15       0       8    250        4
 270        5       17     98       4       2    215        5
 271        7        6     36       0       0      .        4
 272        6       40      0       0     257    733        3
 273        0        0      0       0       0      .        1
 274        .        .     70      10       2    200        1
 275        3       25     85       6       0    305        5
 276        0        7     99       0       6    110        1
 277        3        6     45       0       0      .        2
 278        0        7    100      10      20    100        3
 279        8       12    130      18       0    355        4