data test;
do a=10 to 90 by 10;
c=100-a;
do b=10 to 90 by 10;
d=100-b;
do x=-0.9 to 0.9 by 0.1;
do y=-0.9 to 0.9 by 0.1;
OR=(a*d)/(b*c);
_OR=((a-a*x)*(d+b*y))/((b-b*y)*(c+a*x));
output;
end;
end;
end;
end;
run;
proc sql;
create table result1 as
select a
from test
where OR-_OR<0.001;
run;