Docsity

Example D4 SAS Program - Computer Process Data | STAT 479, Study notes of Statistics

Toggle sidebar
bg1
EXAMPLE D4
SAS Program
goptions reset=all;
goptions hsize=7.5 in vsize= 5.5 in rotate=landscape targetdevice=pscolor;
data d4;
input x y;
label x='Traffic Flow' y='Lead Content';
datalines;
8.3 227
8.3 312
12.1 362
12.1 521
17.0 640
17.0 539
17.0 728
24.3 945
24.3 738
24.3 759
33.6 1263
10.0 .
15.0 .
;
run;
legend1 position=(bottom right inside)
across=2 cborder=red offset=(0,0)
shape=symbol(3,1) label=none
value=(h=.8 f=swissxb);
symbol1 cv=blue v=dot i=none h=1;
symbol2 ci=red r=1;
symbol3 ci=magenta r=2;
symbol4 ci=green r=2;
proc reg data=d4;
model y=x/clm cli;
plot y*x/pred conf nomodel nostat legend=legend1 ctext=stb caxes=vip;
title c=darkmagenta h=2 f=centx 'Prediction Intervals: Lead Content Data';
run;
pf3
pf4
pf5

Partial preview of the text

Download Example D4 SAS Program - Computer Process Data | STAT 479 and more Study notes Statistics in PDF only on Docsity!

EXAMPLE D4SAS Program goptions^ reset=all;goptions^ hsize= 7.5^ in^ vsize=^ 5.5^ in^ rotate=landscape

targetdevice=pscolor;

data^ d4;input^ x y;label^ x='Traffic Flow'^ y='Lead Content';datalines;8.3^227 8.3^312 12.1^362 12.1^521 17.0^640 17.0^539 17.0^728 24.3^945 24.3^738 24.3^759 33.6 126310.0^. 15.0^. ; run ; legend1^ position=(bottom right inside)across=2 cborder=red^ offset=(0,0)shape=symbol(3,1)^ label=nonevalue=(h=.8^ f=swissxb);symbol1^ cv=blue^ v=dot^ i=none^ h=1;symbol2^ ci=red^ r=1;symbol3^ ci=magenta^ r=2;symbol4^ ci=green^ r=2; proc^ reg^ data=d4;model^ y=x/clm^ cli;plot^ y*x/pred^ conf^ nomodel^ nostat^ legend=legend

ctext=stb^ caxes=vip;

title^ c=darkmagenta h=2 f=centx^ 'Prediction Intervals: Lead Content Data'; run ;

SAS Log 5 6 data^ d4; 7 input^ x^ y; 8 label^ x='Traffic^ Flow' y='Lead Content'; 9 datalines;NOTE:^ The^ data^ set^ WORK.D4^ has^13 observations

and^2 variables.

NOTE:^ DATA^ statement^ used (Total process^ time):real^ time^ 0.01 secondscpu^ time^ 0.01 seconds 23 ; 24 run; 25 legend1^ position=(bottom right inside) 26 across=2^ cborder=red offset=(0,0) 27 shape=symbol(3,1) label=none 28 value=(h=.8^ f=swissxb);WARNING: Can not use MODE=RESERVE^ and^ POSITION=(INSIDE).

Changed to MODE=PROTECT.

29 symbol1^ cv=blue^ v=dot^ i=none^ h=1; 30 symbol2^ ci=red^ r=1; 31 symbol3^ ci=magenta^ r=2; 32 symbol4^ ci=green^ r=2; 33 proc^ reg^ data=d4; 34 model^ y=x/clm^ cli; 35 plot^ y*x/pred^ conf nomodel nostat^ legend=legend

ctext=stb^ caxes=vip;

36 title^ c=darkmagenta^ h=2^ f=centx^ 'Prediction

Intervals:^ Lead^ Content^ Data';

37 run;

Prediction^ Intervals:^ Lead^ Content^ Data^

The^ REG ProcedureModel: MODEL1Dependent Variable: y^ Lead ContentOutput^ StatisticsDependent Predicted Std ErrorObs Variable Value Mean Predict^ 95% CL Mean^ 95% CL Predict^

  • 1 227.0000 287.4844 45.4206 184. Residual
  • 390.2328 54.9967 519.9721 -60.
    • 2 312.0000 287.4844 45.4206 184.
    • 390.2328 54.9967 519.9721 24.
      • 3 362.0000 424.9830 35.3804 344.
      • 505.0190 201.6021 648.3640 -62.
        • 4 521.0000 424.9830 35.3804 344.
        • 505.0190 201.6021 648.3640 96.
          • 5 640.0000 602.2839 28.0543 538.
          • 665.7471 384.2911 820.2767 37.
            • 6 539.0000 602.2839 28.0543 538.
            • 665.7471 384.2911 820.2767 -63.
              • 7 728.0000 602.2839 28.0543 538.
              • 665.7471 384.2911 820.2767 125.
                • 8 945.0000 866.4260 36.1835 784.
                • 948.2788 642.3876^1090 78.
                  • 9 738.0000 866.4260 36.1835 784.
                  • 948.2788 642.3876^1090 -128.
                    • 10 759.0000 866.4260 36.1835 784. - 948.2788 642.3876^1090 -107. - 11 1263 1203 63. - 1058 1347 949.2204^1457 60. - 12 348.9969 40.6376 257. - 440.9255 121.0843 576. - 13 529.9162 29.9605 462. - 597.6915 310.6292 749. - Sum of Residuals^0 Sum of Squared Residuals^76493 Predicted Residual SS (PRESS)

1 5 0 0 1 2 5 0 1 0 0 0 7 5 0C o n t e n t L e a d5 0 0 2 5 0^0 7. 5^ 1 0. 0^ 1 2. 5^ 1 5. 0^ 1 7. 5^ 2 0. 0^ 2 2. 5T r a f f i c^ F l o w

2 5. 0^ 2 7. 5^ 3 0. 0^ 3 2. 5^ 3 5. 0