Saturday, March 22, 2014

Sort variable values within an observation: Smallest/Largest function

data one;
  input code1-code6;
datalines;
3 1 5 4 6 2
9 8 6 5 7 4
3 2 1 9 0 7
8 2 6 4 0 1
5 7 4 3 8 2
;

/* The DO UNTIL loop iterates until all of the variable values within an observation have          */
/* been sorted. Set SORTED to 1 and SORTED will be set to 0 each time the DO group executes        */
/* to reorder values. When that code does not execute, the array is already sorted, SORTED remains */
/* 1 and prevents the DO UNTIL loop from executing again.                                          */

data varsort(keep=code1-code6);
  array code(*) code1-code6;
  set one;
  do until (sorted);
    sorted=1;
    do i = 1 to dim(code)-1;
      if code(i) > code(i+1) then do;
        temp=code(i+1);
        code(i+1)=code(i);
        code(i)=temp;
        sorted=0;
      end;
    end;
  end;
run;

proc print data=varsort;
run;



/* Alternative method for SAS 9.0 and above using the SMALLEST function. */

/* The SMALLEST function returns the kth smallest non-missing value.     */ 
/* To reorder from largest to smallest, use the LARGEST value instead.   */

data two;
  keep reordered:;
  set one;
  array code(6);
  array reordered(6);
  do k=1 to 6;
    reordered(k)=smallest(k, of code1-code6);  
  end;
run;

SAS高级职位是什么样子的? (转载)

http://saslist.com/blog/category/%E5%88%86%E4%BA%AB/

A List of SAS Modules been installed

proc setinit noalias;
run;

---Base Product                                                            
---SAS/STAT                                                                
---SAS/GRAPH                                                               
---SAS/ETS                                                                 
---SAS/FSP                                                                 
---SAS/OR                                                                  
---SAS/AF                                                                  
---SAS/IML                                                                 
---SAS/QC                                                                  
---SAS/SHARE                                                               
---SAS/LAB                                                                 
---SAS/ASSIST                                                              
---SAS/CONNECT                                                             
---SAS/INSIGHT                                                             
---SAS/EIS                                                                 
---SAS/GIS                                                                 
---SAS/SHARE*NET                                                           
---MDDB Server common products                                             
---SAS Integration Technologies                                            
---SAS/Secure Windows                                                      
---SAS Bridge for ESRI                                                     
---OR OPT                                                                  
---OR PRS                                                                  
---OR IVS                                                                  
---OR LSO                                                                  
---SAS/ACCESS Interface to DB2                                             
---SAS/ACCESS Interface to ORACLE                                          
---SAS/ACCESS Interface to SYBASE                                          
---SAS/ACCESS Interface to PC Files                                        
---SAS/ACCESS Interface to ODBC                                            
---SAS/ACCESS Interface to OLE DB                                          
---SAS/ACCESS Interface to Teradata                                        
---SAS/ACCESS Interface to MYSQL                                           
---SAS Stat Studio                                                         
---SAS Workspace Server for Local Access                                   
---SAS/ACCESS Interface to Netezza                                         
---SAS/ACCESS Interface to NeoView                                         
---SAS/ACCESS Reserved Slot 555                                            
---SAS/ACCESS Reserved Slot 557                                            
---SAS/ACCESS Reserved Slot 560           

See the screen-shot for my installed SAS modules (On Win7 32 bit OS)                                 




The SAS 9.3 installation on win7 64bit

Expiration: .
Grace Period:  45 days (ending 28JUN2014).
Warning Period: 45 days (ending 12AUG2014).
System birthday:   23MAY2013.
Operating System:   WX64_WKS.
Product expiration dates:
---Base SAS Software

---SAS/STAT

---SAS/GRAPH

---SAS/ETS

---SAS/FSP

---SAS/OR

---SAS/AF

---SAS/IML

---SAS/QC

---SAS/SHARE

---SAS/LAB

---SAS/ASSIST

---SAS/CONNECT

---SAS/INSIGHT

---SAS/EIS

---SAS/SHARE*NET

---SAS Enterprise Miner

---SAS/IntrN

---MDDB Server common products

---SAS Integration Technologies

---SAS/Secure Windows

---SAS Text Miner

---SAS/Genetics

---SAS Enterprise Guide

---SAS Bridge for ESRI

---OR OPT

---OR PRS

---OR IVS

---OR LSO

---SAS/ACCESS Interface to DB2

---SAS/ACCESS Interface to Oracle

---SAS/ACCESS Interface to Sybase

---SAS/ACCESS Interface to PC Files

---SAS/ACCESS Interface to ODBC

---SAS/ACCESS Interface to OLE DB

---SAS/ACCESS Interface to Teradata

---SAS/ACCESS Interface to MySQL

---Text Miner for French

---Text Miner for German

---SAS/IML Studio

---SAS Workspace Server for Local Access

---SAS/ACCESS Interface to Netezza

---SAS/ACCESS Interface to Aster nCluster

---SAS/ACCESS Interface to Greenplum

---SAS/ACCESS Interface to Sybase IQ

---DataFlux Trans DB Driver

---SAS Framework Data Server

---Reserved for Dataflux

---SAS Add-in for Microsoft Excel

Wednesday, March 19, 2014

SAS 9.2 Resource

SAS 9.2 多国语言版 SID and Crack:
https://drive.google.com/file/d/0B1HAtnBFz1rwM0tPQUNOM1RKQVU/edit?usp=sharing

SAS 9.2 Installer:
https://drive.google.com/file/d/0B1HAtnBFz1rwREFzM3JiNC1OemM/edit?usp=sharing

Monday, March 10, 2014

The next step on SAS move

1. read SAS on clinical trial, papers
2. find the code, change and modified the code, add macro
3. research on the statistic models
4. make some audio, if necceray, include SAS, DA, SAP and some communication, writing things

SAS Data analysis training - China


SAS ETL
SAS C#
SAS Report

http://www.dataguru.cn/article-1417-1.html
第1周 SAS体系介绍:逻辑库,变量、函数、操作符与SAS表达式,数据步基本语句
第2周 ETL技术之一:复杂的数据步控制,读取外部文件和数据库连接
第3周 ETL技术之二:数据集整理。跳转、循环、数组等,数据集合并,OUTPUT语句
第4周 ETL技术之三:过程步常用语句,几个常用过程,SQL过程
第5周 初识SAS分析之一:描述性统计量计算过程
第6周 初识SAS分析之二:制表与画图
第7周 真理还是谬误?拉出来遛遛:假设检验
第8周 告别拍脑袋式的肉眼判断:方差分析
第9周 我也是个预言家之一:相关分析与线性回归模型
第10周 我也是个预言家之二:Logistic回归模型与非线性回归
第11周 人生大部分问题是抉择问题:分类器
第12周 人以群分,物以类聚:聚类分析
第13周 抓住背后看不见那只手:主成分分析与因子分析
第14周 不是算命先生:生存分析,COX回归模型
第15周 股神是怎样炼成的:时间序列与ARIMA模型


Some shared SAS files:
SAS 9.2:  I tested on win7, success installed
SAS 9.2  multi-language crack, with SID.

https://drive.google.com/file/d/0B1HAtnBFz1rwM0tPQUNOM1RKQVU/edit?usp=sharing
https://drive.google.com/file/d/0B1HAtnBFz1rwREFzM3JiNC1OemM/edit?usp=sharing