3846 0

频数分析(proc freq) 案例(sas) [推广有奖]

  • 0关注
  • 9粉丝

讲师

75%

还不是VIP/贵宾

-

威望
1
论坛币
-7 个
通用积分
5.0487
学术水平
30 点
热心指数
66 点
信用等级
35 点
经验
45336 点
帖子
202
精华
0
在线时间
443 小时
注册时间
2010-5-10
最后登录
2014-7-22

楼主
论坛数据分析 发表于 2011-3-18 16:19:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

  1. PROC IMPORT OUT=no3
  2. DATAFILE= 'C:\Documents and Settings\Administrator\桌面\新建 Microsoft Office Excel 97-2003 工作表.xls    '
  3. DBMS=excel REPLACE;
  4. GETNAMES=yes;
  5. mixed=yes;
  6. rUN;

  7. data z;
  8. set no3;
  9. keep _COL5 _COL13 h year;
  10. h=substr(left(_COL5),9,4 );
  11. year=year(_COL13);
  12. label h='省市代号'
  13. year= '事故发生年';
  14. run;
  15. proc freq data=z;
  16. table h*year/nocum nocol nopercent norow chisq out=b;
  17. run;
复制代码
CHISQ
Requests chi-square tests and measures based on chi-square

NOCOL
Suppresses display of column percentages

NOCUM
Suppresses display of cumulative frequencies and percentages

NOPERCENT
Suppresses display of percentages

NOROW
Suppresses display of row percentages

OUT=
Names an output data set to contain frequency counts

MISSING
Treats missing values as nonmissing

LIST
Displays two-way to n-way tables in list format
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:freq 频数分析 REQ Fre ROC proc freq

老夫聊发少年狂

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2025-12-31 10:06