Question 2:
data stats;
do p = 0.001, 0.002, 0.005, 0.01, 0.02, 0.05, 0.10,0.20 ;
do df = 1 to 100;
x = round(tinv((1-p/2), df), .001);
output;
end;
end;
run;
proc transpose
data = stats out = outs ( drop = _name_) prefix = df_;
by p;
*id = df;
var x;
run;
ods html file = "c:\t table.xls" style = minimal;
proc print data = outs;
title "T table";
run;
ods html close;
[此贴子已经被作者于2008-10-28 0:43:22编辑过]