查看: 1514| 回复: 2
跳转到指定楼层
上一主题 下一主题
收起左侧

[统计--软件] SAS base 2020/12/13 pass考试经验

全局:

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
昨天考完, 900+ pass. 学过sas半学期,刚过的这学期逼自己用SAS来做统计作业。一学期下来觉得对SAS的环境比较熟悉了。考之前也在版上问过准备时间。就准备给自己一星期时间,每天至少5个小时。 我考的选择题主要来自50/70/123。这一星期里把70过了两遍,50 和123 各过了一遍。花了很多时间做编程题。主要是参考版上的鸡精。

我的lab题是:
1. 按customer的lastname firstname ascending, income descending 排序, 然后查几个 observation,用 proc print data=input02 (firstobs=  obs=) .

2. 按postalcode, income 排序, 只keep每个postalcode中income最高的那个。 我编的是
proc sort data=input02;
by postalCode descending income;run;

data input02;
set input02;
by postalcode descending income;
if first.postalcode then highIncome=income;.--
if last.postalcode;

3. read in excel file that have several sheet.我用的
libname certXL xlsx "C:\cert\input\XX.xlsx"
proc contents data=certXL.income;

4. 求extract customerID的后5位并转化为numeric type,我用的是
IDnumber1=substr(customerID,4,5);
IDnumber=input(IDnumber1,5.);

5. merge 两个table. 要记得先sort both tables, 然后再merge. merge完了要求grand total of variable 'screw driver',我用的是 . From 1point 3acres bbs
proc means data= mergeData sum;
class product;
var screw_driver; run;

6. 改错题 bed chair desk sofa 题。原code是
if product='Bed' then output bed; 应改为 if product='BED' then output bed; 因为table里用的都是大写。

7.改错题 if firstname in ('Amanda', 'Tao', 'Destiny'),不记得具体怎么改的了。

新人求大米可以看找工面经,也祝大家都考出好成绩。最近考SAS半价。

评分

参与人数 3大米 +19 收起 理由
bryanjhy + 3 给你点个赞!
pikado + 15 欢迎分享你知道的情况,会给更多积分奖励!
啊月快醒醒 + 1 给你点个赞!

查看全部评分


上一篇:有南卡 u of south Carolina的生统学长学姐吗
下一篇:Leetcode database刷题记录和总结
🔗
kstefanie 2020-12-16 12:51:07 | 只看该作者
全局:
赞! 很有用, 请大神分享觉得有用的机经链接
回复

使用道具 举报

🔗
 楼主| worldofpeace 2020-12-16 22:44:59 | 只看该作者
全局:
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表