楼主: 鳗鱼张
1504 2

[问答] sas base问题 [推广有奖]

  • 0关注
  • 1粉丝

大专生

78%

还不是VIP/贵宾

-

威望
0
论坛币
1 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
495 点
帖子
42
精华
0
在线时间
39 小时
注册时间
2015-3-5
最后登录
2015-5-17

楼主
鳗鱼张 发表于 2015-3-7 12:37:39 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
25.The following report is generated:
Style
of homes n Asking
Price
CONDO 4 $99,313
RANCH 4 $68,575
SPLIT 3 $77,983
TWOSTORY 4 $83,825
Which of the following steps created the report?
a. proc freq data=sasuser.houses;
tables style price /nocum;
format price dollar10.;
label style="Style of homes"
price="Asking price";
run;
b. proc print data=sasuser.houses;
class style;
var price;
table style,n price*mean*f=dollar10.;
label style="Style of homes"
price="Asking price";
run;
c. proc means data=sasuser.houses n mean;
class style;
var price;
format price dollar10.;
label style="Style of homes"
price="Asking price";
run;
d. proc report data=sasuser.houses nowd headline;
column style n price;
define style / group "Style of homes";
define price / mean format=dollar8.
"Asking price";
run;

The FREQ procedure cannot create the average asking price. The CLASS statement and
the VAR statement are not valid for use with the PRINT procedure. The MEANS
procedure output would have both the N statistic and the N Obs statistic since a CLASS
statement is used. The REPORT procedure produced the report.

请问从哪里看出来 asking price 是average呢,还有means procedure那个,为什么不是var condo ranch split  twostory而是var price呢~

二维码

扫码加我 拉你入群

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

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

关键词:SAS base Base proc report Procedure statement generated following created report tables

沙发
seven74 发表于 2015-3-9 03:38:22
价钱是average是因为。。所有选项都用的average呀确实没有明确说明,但是如果给的是sum不太符合逻辑呀,因为每种户型数目不一样,加起来没有比较的意义,min或者max倒是有可能的,但是选项里没有呀,选择题有时候细节就没有多给,不要想太多啦。
var后面跟的应该是变量名,condo那些是变量style的值呀,不是变量名。这个dataset只有2个变量,style和price。
已有 1 人评分论坛币 收起 理由
admin_kefu + 50 热心帮助其他会员

总评分: 论坛币 + 50   查看全部评分

藤椅
鳗鱼张 发表于 2015-3-9 22:20:27
seven74 发表于 2015-3-9 03:38
价钱是average是因为。。所有选项都用的average呀确实没有明确说明,但是如果给的是sum不太符合 ...
谢谢~~~~~~

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-27 06:31