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

Material Type: Notes; Professor: Marasinghe; Class: CMPTR PROCESSG DATA; Subject: STATISTICS; University: Iowa State University; Term: Unknown 1989;

Typology: Study notes

Pre 2010

Uploaded on 09/02/2009

koofers-user-hzo
koofers-user-hzo 🇺🇸

9 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Example C4
SAS Program
goptions reset=all;
goptions hsize=7.5 in vsize= 5.5 in rotate=landscape targetdevice=pscolor;
data ozone;
input x1-x10;
drop x1-x10;
array var(10) x1-x10;
do i=1 to 10 by 2;
stamford=var(i);
yonkers =var(i+1);
output;
end;
datalines;
66 47 61 36 152 76 80 66 113 66
52 37 47 24 201 108 68 82 38 18
. 27 . 52 134 85 24 47 38 25
. 37 196 88 206 96 24 28 28 14
. 38 131 111 92 48 82 44 52 27
. . 173 117 101 60 100 55 14 9
49 45 37 31 119 54 55 34 38 16
64 52 47 37 124 71 91 60 94 67
68 51 215 93 133 . 87 70 89 74
26 22 230 106 83 50 64 41 99 74
86 27 . 49 . 27 . 67 150 75
52 25 69 64 60 37 . 127 146 74
43 . 98 83 124 47 170 96 113 42
75 55 125 97 142 71 . 56 38 .
87 72 94 79 124 46 86 54 66 38
188 132 72 36 64 41 202 100 38 23
118 . 72 51 75 49 71 44 80 50
pf3
pf4
pf5

Partial preview of the text

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

Example^ C4 SAS Program goptions^ reset=all;goptions^ hsize=

7.5^ in^ vsize=^ 5.

in^ rotate=landscape

targetdevice=pscolor;

data^ ozone;input^ x1-x10;drop^ x1-x10;array^ var(^10 ) x1-x10;do i=^1 to^^10 by ^2 ; stamford=var(i);yonkers =var(i+^1 );output; end;datalines;66 47^61 36 152

52 37^47 24 201 108

68 82^ 38 18

. 27^.^ 52 134

85 24 47^ 38 25

. 37 196^ 88 206

96 24 28^ 28 14

. 38 131 111^92

48 82 44^ 52 27

.^. 173 117 101

60 100 55^14

49 45^37 31 119

54 55 34^ 38 16

64 52^47 37 124

71 91 60^ 94 67

68 51 215^ 93 133

.^ 87 70^ 89 74

26 22 230 106^

83 50 64 41^

86 27^.^49

.^27. 67 150 75

52 25^69

43.^98 83 124

75 55 125^ 97 142

71. 56^38

46 86 54^ 66 38

188 132 72 36^

118. 72 51^

59 85^ 44 80 34

82 42 143 104^

. 53 122 75^ 99 58

71 45 192 107^

46 25 155^ 86 71 35

103 80^. 56^

68 45 80 70^

240 107 122 68^

.^78 71 53^ 52 27

31 21^32

87 40 28 36^

40 50 114^67

47 31^32

. 25^80 43 24 14

51 37^23

73 46^24

31 19^71

59 62^80 77 108 51

47 33^38

119 80 169^ 75 38 15

14 22 136^81

64 39 174^ 87 28 21. 67 169 119.^ 70 141 47^

71 45^.^. 111

74 202 114^

run ; proc^ rank^ fraction

data=ozone; var^ stamford;ranks^ p; run ; title1^ c=blue^ 'Quantile plot of Stamford Ozone data';axis1^ label=(c=darkviolet

f=centb^ h= 1.^ a=^90 ' Quantile q(p)'); axis2^ label=(c=darkviolet

f=centb^ h= 1.^

' Fraction p=i/n'); symbol1^ c=coral v=star^ i=none^ h=^1 ; proc^ gplot^ ; plot^ stamford*p/vaxis=axis

vm=^9 haxis=axis2 hm=^3 href= .25 .50^ .75^ chref=aqua

lhref=^2 vref=^60 100 cvref=crimson

lvref=^20 frame^ ; run ;

NOTE:^ The^ data^ set^ WORK.DATA^

has^155 observations

and^4 variables.

NOTE:^ PROCEDURE RANK^ used^ (Total process

time): real^ time^

0.01 seconds cpu^ time^

0.01 seconds 5152 title1^ c=blue

'Quantile plot of Stamford

Ozone data';

53 axis1^ label=(c=darkviolet f=centb h=1.5 a=

'^ Quantile^ q(p)');

54 axis2^ label=(c=darkviolet f=centb h=1.

'^ Fraction^ p=i/n'); 55 symbol1^ c=coral

v=star^ i=none^

h=1; 5657 proc^ gplot

58 plot^ stamford*p/vaxis=axis

vm= 59

haxis=axis2^ hm= 60

href=.25^ .50^.

chref=aqua^ lhref= 61

vref=60^100 cvref=crimson

lvref=

62

frame^ ; 63 run;NOTE:^19 observation(s)

contained a MISSING value for

the^ stamford^ * p^ request.

NOTE:^ There^ were

155 observations read from

the^ data set WORK.DATA1. NOTE:^ PROCEDURE GPLOT^ used^ (Total process time):real time 0.17 secondscpu time 0.

seconds

3 0 0 2 0 0 1 0 0^0 0. 0^ 0. 1^ 0. 2

  1. 3^ 0. 4^

  2. 5^ 0. 6^ 0. 7

  3. 8^ 0. 9^

  4. 0