jingju11 发表于 2013-5-30 01:14 
可以参考这个解答.邓老师给出很好的答案.京剧
https://bbs.pinggu.org/thread-2420219-1-1.html
看了你的回复只是有些疑惑为什么输出来的结果里显示的很别扭,不知道问题出在了什么地方,我觉得输出的结果应该是两行的
data test;
input type $ pr r;
cards;
A 1.11 0.11
A 2.12 0.21
A 3.49 0.35
B 3.50 7.01
B 3.72 7.42
B 4.11 8.21
;
proc reg data=test;
by type;
model r=pr;
ods output parameterestimates=outtest fitstatistics=out test;
run;
ods listing;