yulingq 自己解决了,只是方法有点笨。 data t; array t(3); do i=1 to 100; do j=1 to 3; t(1)=tinv(0.025,i); t(2)=tinv(0.05,i); end; output; end; drop i j; run;