Option: Set those with cut off less than 0.8 as missing - Easy
data want;
set have;
array vars(*) A --F ;
do i = 1 to dim(vars);
if vars(i)<0.8 then var(i)=.;
end;
drop i;
run;
@tadedir1 wrote:
Expected output
Option: Set those with cut off less than 0.8 as missing
Study Number
A
B
C
D
E
F
1
1
0.98
0.99
0.98
.8
0.98
2
.
1
1
.
1
1
3
1
.
1
1
1
1
... View more