楼主: gipher
1946 3

[SAS] 求助 [推广有奖]

  • 0关注
  • 0粉丝

学前班

50%

还不是VIP/贵宾

-

威望
0 级
论坛币
33 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
65 点
帖子
2
精华
0
在线时间
0 小时
注册时间
2007-1-19
最后登录
2007-1-20

楼主
gipher 发表于 2007-1-19 12:55:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
<P>对应分析中,怎么样用sas把定量数据转化成列联表?</P>
二维码

扫码加我 拉你入群

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

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

关键词:数据转化 对应分析 列联表 怎么样 求助

回帖推荐

zzheng722 发表于3楼  查看完整内容

***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 ; ...

本帖被以下文库推荐

沙发
gfgh 发表于 2007-1-26 19:32:00
<P>概率矩阵?P=X/T,    T=x[1][1]+x[1][2]+......+x[m][n]?</P>

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

已有 1 人评分经验 论坛币 收起 理由
bakoll + 5 + 10 热心帮助其他会员

总评分: 经验 + 5  论坛币 + 10   查看全部评分

藤椅
zzheng722 发表于 2007-2-23 05:58:00
<P>***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;</P>
<P>***Another way is to use format to group 定量数据 into different categories. B this way, you don't need to create two new variables***;</P>
<P>data a;</P>
<P>input weight bloodpressure;</P>
<P>cards;<FONT face="Courier New" size=2> </P>
<P>200 150</P>
<P>99 80</P>
<P>110 100</P>
<P>225 120</P>
<P>201 180</P>
<P>103 90</P>
<P></FONT>;</P>
<P>run;</P>
<P>proc format;</P>
<P>value wtfmt 0-150='Low' 151-high='high';</P>
<P>value bpfmt 0-120='Normal' 121-high='High';</P>
<P>run;</P>
<P>proc freq data=a;</P>
<P>tables weight*bloodpressure/nopercent nocol chisq;</P>
<P>format weight wtfmt. bloodpressure bpfmt.;</P>
<P>run;</P>

板凳
nktiger1 发表于 2007-3-7 18:33:00
Cool.<br>
Actually, I think format is a powerful when data analysis.<br>

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

客服
GMT+8, 2026-12-5 13:22