SAS中文论坛

标题: 请教output的用法?谢谢 [打印本页]

作者: shiyiming    时间: 2004-12-25 15:35
标题: 请教output的用法?谢谢
请问一下,在sas里 有这样的程序存在:
proc means data=sas1;
var x;
output out=file;
run;
那请问,在别的语法里能这样用嘛?
例如:proc freq data=sas1;
         output out=?
       run;
这好像不行,怎么才能运用freq的输出文件呢?谢谢了。
作者: shiyiming    时间: 2004-12-25 15:54
标题: w
格式:
proc freq data=?;
tables solids/statistics;/*指定要输出的统计量,如chisq等*/
output statistics out=??;/*同上*/
run;
作者: shiyiming    时间: 2004-12-26 05:32
标题: to dellpc
from sas onlinedoc

proc freq data=color order=data;
   weight count;

     tables eyes*hair /chisq expected cellchi2
                     norow nocol;

     output out=chisqdat pchi lrchi n nmiss;
   title 'Chi-Square Tests for 3 by 5 Table of Eye and Hair Color';
run;
作者: shiyiming    时间: 2004-12-26 13:03
标题: 谢谢
楼上的能不能将详细一点,我是想要他频数统计的结果,结果中要有频数
作者: shiyiming    时间: 2005-1-7 15:44
标题: output and out
freq 中 output out=data 是用来存放计算的统计量的,如卡方值,MH卡方值,FISHER,p值等

你需要的频数在TALBE 语句中。
table x*y/out=data outpct;




欢迎光临 SAS中文论坛 (http://mysas.net/forum/) Powered by Discuz! X3.2