SAS SAS Base Programmer Advanced Programmer SAS http
SAS程序员认证考试 • SAS提供五种认证证书,其中通用的 证书考试有两种 – Base Programmer – Advanced Programmer • 各地区有多少人持有SAS证书 – http: //support. sas. com/certify/dir_name. html
有用的网址 • 中文的交流社区 – http: //www. mysas. net “SAS认证与培训”版 – http: //www. mitbbs. com/mitbbs_bbsdoc. php? board=Statistics “统计”版 – http: //sasor. feoh. net • SAS出版的教材例子下载 – Little http: //www. sas. com/apps/pubscat/bookdetails. jsp? pc=56649 – 蒙特卡罗方法 http: //support. sas. com/publishing/bbu/companion_site/57323. html – 更多 http: //support. sas. com/publishing/bbu/companion_site/home. html#l • Google限定网站的搜索 site: sas. com • Wiki百科的https入口与参考网址: 英文 http. S: //secure. wikimedia. org/wikipedia/en/wiki/Main_Page 中文 http. S: //secure. wikimedia. org/wikipedia/zh/wiki/Main_Page SAS系统辞条:http. S: //secure. wikimedia. org/wikipedia/zh/wiki/SAS%E 7%B 3%BB%E 7%BB%9 F
SAS产品架构提要 • SAS/BASE data …; …; run; proc sql …; …; quit; • SAS/INSIGHT 图形界面的统计分析 Solutions Analysis Interactive Data Analysis 选择数据库表格… ; 从图上的点可以回访到数据纪录 • SAS/GRAPHS • SAS/STAT 60多个各个统计领域的处理程序(proc) • SAS/IML … proc iml; …; quit;
SAS帮助中最有帮助的部分 • Examples – 树型目录 Learning to Use SAS Sample SAS Programs 右边的页面链接
SAS语言的架构 • Command – Statement – Step – Macro • Data …; …; run; • Proc IML; …; quit; Proc GPlot; …; quit; Proc SQL; …; quit; • %Macro
推荐在线中文讲义 • 讲义作者: – 北京大学概率统计系 李东风 老师 http: //www. math. pku. edu. cn/teachers/lidf/ • 讲义网址 http: //www. math. pku. edu. cn/teachers/lidf/docs/statsoft/html/statsoft. html
如何debug数据步 http: //support. sas. com/onlinedoc/913/get. Doc/zh/lrdict. hlp/a 000379345. htm Data tours (drop=type) / debug; • E _ALL_ • • B 行号 W 变量名 D B 行号 D W 变量名 • G
ODS Output 用法 • ods trace on; /*在Log窗口记录输出的表格 名*/ • ods output � 出的表格名=some_dataset;
其他补充 %Macro语言能做什么? %Macro语言常见陷阱 %IF (%Eval(5/2)>2) %THEN %IF (%SYSEVALF (5/2)>2) %THEN %Let A=1. 1, 2. 1, 3. 4; %Scan(&A, 2); Call Symput(“VAR 1”, ”VALUE”); put “&VAR 1”;
SAS中的结构方程和多层分析 • 结构方程 Proc CALIS • 多层分析 Proc Mixed Singer, J. D. (1998), Using SAS PROC MIXED to fit multilevel models, hierarchical models, and individual growth models, Journal of Educational and Behavioral Statistics, 24(4). 323 -355. 作者主页http: //www. gse. harvard. edu/~faculty/singer/ 提供了pdf全文下载,但要求下载的 读者留一个反馈电子邮件。 摘一段主页上对这份资料的简介: It is written as a step-by-step tutorial that shows how to use SAS to fit the two most common multilevel models: (1) two-level models, designed for data on individuals nested within naturally occuring hierarchies (e. g. , students within classes) and (2) individual growth models, designed for exploring longitudinal data (on individuals) over time. The conclusion provides code for three level models and an appendix provides code for working with multilevel data in SAS.
- Slides: 29