楼主: cokeffy
2509 4

[学习分享] 2015.05.13 SAS Base 机经分享 [推广有奖]

  • 0关注
  • 0粉丝

大专生

73%

还不是VIP/贵宾

-

威望
0
论坛币
1590 个
通用积分
0.1500
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
188 点
帖子
19
精华
0
在线时间
101 小时
注册时间
2011-10-29
最后登录
2025-6-17

楼主
cokeffy 发表于 2015-5-14 20:04:34 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
就说几道目前我没在论坛里的机经帖看到的题,但是都很基础,希望对考试的同学有帮助。
1.用means的时候,关于missing values是怎么处理的?
选项大概是Use only all non-missing values; Use all non-missing values and numbers stored as char variables; ...
Proc means ...
For each variable, the number of non-missing values are used.


2. proc print data = work.student ???;
    label ID = 'StudentID'
            INFO = 'Major*GPA*Units';run;
a) labelsplit = '*';
b) split = '*';
PROC PRINT sometimes conserves spaceby splitting labels across multiple lines.  Use SPLIT= in the PROC PRINT statementto control where these splits occur. You do not need to use LABEL if you useSPLIT=.
没有labelsplit

3. data errors when you read raw data from ...
a) writes a note in SAS log and continue to execution
b) writes a error in SAS log and suspend to execution
c) writes notes in SAS log until the errors limit ...
d) writes a warning in SAS log and suspend to execution

Data errorsoccur when some data values are not appropriate for the SAS statements thatyou have specified in the program. For example, if you define a variable asnumeric, but the data value is actually character, SAS generates a data error.SAS detects data errors during program execution and continues to executethe program, and does the following:
  • writes an invalid data note to the SAS log.
  • prints the input line and columnnumbers thatcontain the invalid value in the SAS log. Unprintable characters appear inhexadecimal. To help determine column numbers, SAS prints a rule line abovethe input line.
  • prints the observation under the rule line.
  • sets the automatic variable _ERROR_ to 1 for thecurrent observation.


大概就这几道我没在最近的机经中看过,如有重复多多包涵!
但还是希望小伙伴们考试的同时还是认认真真的学习并实际操作SAS!

继续奋战Adv了!










二维码

扫码加我 拉你入群

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

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

关键词:SAS base Base observation appropriate Characters sometimes numbers values

沙发
没名堂 发表于 2015-5-15 00:09:46
谢谢分享!

藤椅
wh7064rg 发表于 2015-5-15 09:04:51
谢谢分享

板凳
emmawill 发表于 2015-5-25 16:08:20 来自手机
谢谢分享~~!

报纸
kulawang 发表于 2016-1-13 10:33:28
谢谢分享

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

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