# # RECIPE Example #3: Regression model with data from a single batch # # -- This dataset has 11 observations at two fixed levels. The # data come from 1 batch, there are two fixed parameters to # estimate (the slope and intercept of a straight line), and # a B-basis value is to be calculated at 7 points on this line. # # -- ntot, nlvl, nbch, npar, npts, prob, conf 11 2 1 2 7 .9d0 .95d0 # # -- We are fitting a model y=a+bT at two levels: T=75 degrees and # T=-67 degrees. The first column corresponds to `a' in this # linear equation; the second column corresponds to `b'. Note # that these values need not be given in any special order, # for example (1, -67) need not come before (1, 75). The # important thing is that the order of the rows given here # must correspond to the level indicator, p(s), given with each # response value. 1 75 1 -67 # # -- Now we have the 11 observations. The first column is the # level (=1 for 75 degrees, =2 for -67 degrees), the second # column is the batch (always 1), and in the third column are # the strength observations. # 1 1 328.1174 1 1 334.7674 1 1 347.7833 1 1 346.2661 1 1 338.7314 1 1 340.8146 2 1 343.5855 2 1 334.1746 2 1 348.6610 2 1 356.3232 2 1 344.1524 # # -- Finally, we give the seven points at which basis # values are to be determined. These correspond # to seven different temperatures -67,...,50. Note # that the first column of ones is required because # of the intercept in the regression model 1 -67 1 -50 1 -25 1 0 1 25 1 50 1 75