º»¹®/³»¿ë
¿¹) text p88 ¿¬½À¹®Á¦ #7
1) array x[10] x1-x10; array x(10);
2) array grade[*] x1-x20;
3) array y{*} _numeric_;
4) data all;
array all[20] x1-x10 y1-y10;
array new[10] z1-z10;
input id x1-x10 y1-y10;
do i=1 to 10;
new(i)=all(i) + all(i+1);
end;
datalines;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
proc print; run;
Q) º¯¼ö T1, T2, T3, T4ÀÇ 1Â÷¿ø ¹è¿ÀÇ ARRAY ¹®Àº?
__________________________
½Ç½À) ´ÙÀ½ SAS ¹®ÀåÀ» array¸¦ »ç¿ëÇÏ¿© ´Ù½Ã ÀÛ¼ºÇϽÿÀ.
data oldmiss;
input a b c x1-x3 y1-y3;
if a=999 then a=.;
if b=999 then b=.;
if c=999 then c=.;
if x1=999 then x1=.;
if x2=999 then x2=.;
if x3=999 then x3=.;
if y1=777 then y1=.;
if y2=777 then y2=.;
if y3=777 then y3=.;
datalines;
1¡¦(»ý·«)
1 2 3 4 5 4 16 25