请选择 进入手机版 | 继续访问电脑版
楼主: chasedreamtrue
1625 1

请教how to do this one [推广有奖]

  • 0关注
  • 0粉丝

本科生

78%

还不是VIP/贵宾

-

威望
0
论坛币
123 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
781 点
帖子
82
精华
0
在线时间
12 小时
注册时间
2007-7-30
最后登录
2010-10-24

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
You conducted a survey and the responses to the five questions were coded as A B C D E .A.Using the following eight lines of data,write a SASA data step to read these data and create five variables (QUES1,QUES2,QUES3,QUES4,QUES5)。Remember that these must all be charactered variables(since the values are letters)and there are no spaces between the values so you must use column input .Next ,generate frequency distributions for each of the five questions .omitting cumulative statistics from the listing .
The data is as follows

ABCDE

AACCE

BBBBB

CABDA

DDAAC

CABBB

EEBBB

ACACA

刚刚开始学习SAS。搞不懂怎末弄。
就是求A B C D E 的频率,但是不知道怎末用QUES1---QUES5表示,
这个题目建议是用COLUMN INPUT,具体应该怎末输入呢?
不要求COUMULATIVE SATISTICS,但是用到proc freq data=test 去不掉呢
thank you so much
二维码

扫码加我 拉你入群

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

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

关键词:This How distribution cumulative Statistics 请教 one

回帖推荐

xjg 发表于2楼  查看完整内容

here you go: /** answer **/ data sv; input @1 (ques1-ques5) ($char1.);datalines;ABCDEAACCEBBBBBCABDADDAACCABBBEEBBBACACA;run; proc freq data=sv; tables ques1-ques5/nocum;run;

本帖被以下文库推荐

xjg 发表于 2007-8-25 00:57:00 |显示全部楼层 |坛友微信交流群

here you go:

/** answer **/

data sv;
input @1 (ques1-ques5) ($char1.);
datalines;
ABCDE
AACCE
BBBBB
CABDA
DDAAC
CABBB
EEBBB
ACACA
;
run;

proc freq data=sv;
tables ques1-ques5/nocum;
run;

已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 10 精彩帖子

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

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-28 19:59