全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1750 3
2007-01-19

对应分析中,怎么样用sas把定量数据转化成列联表?

二维码

扫码加我 拉你入群

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

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

全部回复
2007-1-26 19:32:00

概率矩阵?P=X/T, T=x[1][1]+x[1][2]+......+x[m][n]?

[此贴子已经被作者于2007-1-26 20:04:52编辑过]

二维码

扫码加我 拉你入群

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

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

2007-2-23 05:58:00

***one way is to recode your 定量数据 into groups and create two new variables called 'weight group' and 'BP group', and do proc freq for these two new variables;

***Another way is to use format to group 定量数据 into different categories. B this way, you don't need to create two new variables***;

data a;

input weight bloodpressure;

cards;

200 150

99 80

110 100

225 120

201 180

103 90

;

run;

proc format;

value wtfmt 0-150='Low' 151-high='high';

value bpfmt 0-120='Normal' 121-high='High';

run;

proc freq data=a;

tables weight*bloodpressure/nopercent nocol chisq;

format weight wtfmt. bloodpressure bpfmt.;

run;

二维码

扫码加我 拉你入群

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

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

2007-3-7 18:33:00
Cool.
Actually, I think format is a powerful when data analysis.
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群