中国人民大学 统计学院 王 剑 From SAS to R. 你属于哪一类 ? 既熟悉 SAS ,又熟悉 R 熟悉 SAS , 但不熟悉 R 不熟悉 SAS ,但熟悉 R 既不熟悉 SAS ,也不熟悉 R.

Slides:



Advertisements
Similar presentations
How SAS implements structured programming constructs
Advertisements

Statistical Methods Lynne Stokes Department of Statistical Science Lecture 7: Introduction to SAS Programming Language.
SAS Programming:File Merging and Manipulation. Reading External Files (review) data barf; * create the dataset BARF; infile ’s:\mysas\Table7.1'; * open.
Combining Lags and Arrays [and a little macro] Lynn Lethbridge SHRUG OCT 28, 2011.
Path Analysis SAS/Calis. Read in the Data options formdlim='-' nodate pagno=min; TITLE 'Path Analysis, Ingram Data' ; data Ingram(type=corr); INPUT _TYPE_.
纺纱学. 2 绪 论 基本要求:了解纺纱系统的类别 重点掌握:棉纺系统的工艺流程 3 一、纺纱原理与设备 纺纱:用物理或机械的方法将纺织纤维纺成纱 线的过程。 纺纱原理:初加工、原料的选配、开松除杂、 混和、梳理、精梳、并合、牵伸、加捻、卷绕等。 纺纱方法:传统纺纱方法、新型纺纱方法。 纺纱设备:开清棉联合机、梳棉机、精梳机、
A guide to the unknown…  A dataset is longitudinal if it tracks the same type of information on the same subjects at multiple points in time or space.
使用 Autodesk® 3ds Max® & Autodesk ® Middleware ® 创建下 一代游戏  郭勇  Autodesk 研究学院 3ds Max 研发专 家  曹越  Autodesk 媒体及环境部解决方案专家.
A A R H U S U N I V E R S I T E T Faculty of Agricultural Sciences Literate programming with SAS - and other languages Søren Højsgaard Faculty of Agricultural.
I OWA S TATE U NIVERSITY Department of Animal Science Getting Started Using SAS Software Animal Science 500 Lecture No. 2.
第四章 犯罪概念与犯罪构成. 第一节 犯罪概念 一、犯罪概念的类型  (一)犯罪的形式概念  (二)犯罪的实质概念  (三)犯罪的混合概念.
Beginning Data Manipulation HRP Topic 4 Oct 19 th 2011.
地理信息系统概述. 数据和信息 (Data & Information) 数据 原始事实 如:员工姓名, 数据可以有数值、图形、声音、视觉数据等 信息 以一定规则组织在一起的事实的集合。
Quick Data Summaries in SAS Start by bringing in data –Use permanent data set for these examples Proc Tabulate –Produces summaries very quickly and easily.
吉林大学远程教育课件 主讲人 : 杨凤杰学 时: 64 ( 第三十八讲 ) 离散数学. 第八章 格与布尔代数 §8.1 引 言 在第一章中我们介绍了关于集 合的理论。如果将 ρ ( S )看做 是集合 S 的所有子集组成的集合, 于是, ρ ( S )中两个集合的并 集 A ∪ B ,两个集合的交集.
吉林大学远程教育课件 主讲人 : 杨凤杰学 时: 64 ( 第四十八讲 ) 离散数学. 例 设 S 是一个非空集合, ρ ( s )是 S 的幂集合。 不难证明 :(ρ(S),∩, ∪,ˉ, ,S) 是一个布尔代数。 其中: A∩B 表示 A , B 的交集; A ∪ B 表示 A ,
第三部分 行政行为 第一节 行政行为的概述 一、行政行为的概念、特征和内容 (一)行政行为的概念(比较)(比较) (二)行政行为的特征行政行为的特征 (三)行政行为的内容行政行为的内容 二、行政行为的效力行政行为的效力 三、行政行为的分类.行政行为的分类. 四、行政行为成立与合法要件 (一). 行政行为成立要件.
刑法总论 第一章 刑法概述. 第一节 刑法的概念和性质  一、刑法的概念  刑法是规定犯罪、刑事责任和刑罚的法律。  具体地说,刑法就是掌握政权的阶级即统 治阶级,为了本阶级政治上的统治和经济 上的利益,根据自己的意志,规定哪些行 为是犯罪和应负刑事责任,并对犯罪人处 以何种刑罚处罚的法律。
吉林大学远程教育课件 主讲人 : 杨凤杰学 时: 64 ( 第四十五讲 ) 离散数学 模 格 定义 设( L , ≤ ) 是一个格,对任意 a , b , c ∈ L , 如果 a≤b ,都有 a  ( b×c ) = b× ( a  c ) 则称( L , ≤ )为模格。
Using PC SAS Help. You can get information about the Editor, Log, or Output windows by Selecting “Using this Window” under the Help Menu...
Basic And Advanced SAS Programming
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 3P. 1Winter Quarter Structured Engineering.
A Review of ‘A Step-by-Step Approach to Using SAS for Factor Analysis and Structural Equation Modeling’ (Larry Hatcher) By Barry DeCicco, September 23,
Introduction to SAS Math 3200 Jan Jimin Ding.
Poisson Regression Caution Flags (Crashes) in NASCAR Winston Cup Races L. Winner (2006). “NASCAR Winston Cup Race Results for ,” Journal.
Introduction To Correlation with SAS Sam Gordji Weir 107.
Dr. Peter Bewerunge © 2009 HMS Analytical Software GmbH Calling R Functions from SAS… PhUSE 2011 – ….with PROC IML.
统计资料 国外会议统计 管理信息系统统计分析 amcis2005 文章排队.
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
计算机科学概述 Introduction to Computer Science 陆嘉恒 中国人民大学 信息学院
Lesson 7 What’s Your Project about?. 学生早读时已预习过本课单 词,可利用几分钟时间带学 生快速回顾温习,对单词的 熟练度越高,阅读的速率也 越高。 Words Review.
UNIT 24 Where are you from? Lesson 93 STUDENTS : Class 1,Grade1 TEACHER: chen da.
Introduction to HTML Reporting with SAS Welcome to HTML reporting with SAS Sam Gordji, Weir 107.
SAS Efficiency Techniques and Methods By Kelley Weston Sr. Statistical Programmer Quintiles.
ISU Basic SAS commands Laboratory No. 1 Computer Techniques for Biological Research Animal Science 500 Ken Stalder, Professor Department of Animal Science.
1 Filling in the blanks with PROC FREQ Bill Klein Ryerson University.
1 Detection of Differential Item/Test Functioning (DIF/DTF) Using IRT Implication and example.
Introduction to SAS Welcome to IT’s seminar on stat. packages Sam Gordji, Weir 107.
成都信息工程学院 计算机系 1 Java 程序设计 Java Programming Fall, 2010.
SAS ODS (Output Delivery System) Donald Miller 812 Oswald Tower ;
Chapter 22: Using Best Practices 1 STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina.
Introduction to Correlation & Regression with SAS Sam Gordji Weir 107.
Lesson 46 Canada and the U.S.. a map of Canada Lead-in.
信息管理专业英语 Information Management English School of Information Management, Wuhan University Instructor: An, Lu (Associate Prof, Dr.) 授课教师:安璐 副教授
Module 8 Unit 2 His name was Louis Braille.. Born: 1981 City: Fuzhou In 1983: could walk and speak, couldn’t run fast and speak English couldn’t run fast.
8.1 二元一次方程组. 篮球联赛中,每场比赛都要分出胜负,每队 胜一场得 2 分,负一场得 1 分. 如果某队为了争取 较好名次,想在全部 22 场比赛中得 40 分,那么这 个队胜负场数应分别是多少 ? 引 言引 言 用学过的一元一次方 程能解决此问题吗? 这可是两个 未知数呀?
用一些不重叠摆放的多边形把平面 的一部分完全覆盖叫平面镶嵌(多 边形覆盖平面)。 仅用一种正多边形镶嵌,哪几种正 多边形能镶嵌成一个平面? 探究问题(一)
Chapter 19: Introduction to Efficient SAS Programming 1 STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South Carolina.
Section B Culture Shock I. Reading skill Locate the main idea for paragraph 1,2,3,4, and 6 in text B.
李婵娟 二○一五年十一月. 什么是“走出去”企业? 开具中国税收居民身份证明 境外所得税收抵免情况及申请流程.
画杨桃 河南省南阳市油田第五小学 张俊生. 叮嘱 审视 严肃 半晌 熟悉 相似 教诲 和颜悦色 叮嘱 1 .嘱咐,嘱托。 2 .托,托付。 父亲对我要求很严,经常叮 嘱我: “ 你看见一件东西,是什么 样的,就画成什么样,不要想当 然,画走了样。 ”
W-1 全国职业教育数字化资源共建共享 旅游服务与管理 任务一 中国历史发展概述 知识点 5 五代十国时期 主题一 中国历史文化.
人 有 悲 欢 离 合, 月有阴晴圆缺。月有阴晴圆缺。 华师大版七年级数学第二册 海口市第十中学 数学组 吴锐.
A. Using ‘some’ and ‘any’. I need to buy some Christmas presents.
1 EPIB 698C Lecture 1 Instructor: Raul Cruz-Cano
Generation of Chinese Character Based on Human Vision and Prior Knowledge of Calligraphy 报告人: 史操 作者: 史操、肖建国、贾文华、许灿辉 单位: 北京大学计算机科学技术研究所 NLP & CC 2012: 基于人类视觉和书法先验知识的汉字自动生成.
第二节 财政的基本特征 第二节 财政的基本特征 一、财政分配以政府为主体 二、财政分配一般具有强制性 三、财政分配一般具有无偿性 第一章 财政概论 四、财政分配一般具有非营利性.
22,156 例恶性淋巴瘤分 类研究初步报告 中国淋巴瘤病理协作组 一、概 况 研究时间: 研究时间: 病例数: 22,156 例 病例数: 22,156 例 参加医院: 71 所 参加医院: 71 所.
Online Programming| Online Training| Real Time Projects | Certifications |Online Classes| Corporate Training |Jobs| CONTACT US: STANSYS SOFTWARE SOLUTIONS.
Copyright © 2006, SAS Institute Inc. All rights reserved. Company confidential - for internal use only SAS/IML Studio Ian Sedgwick.
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
寿县一中 常清 简单几何体 鸟巢.
BASIC Programming Language. Overview Install Just BASIC Run BASIC Programs Syntax of BASIC –Data, Variables, and Calculations –Input/Output –Decisions.
1-1 Logic and Syntax A computer program is a solution to a problem.
SAS Essentials How SAS Thinks
Programming Right from the Start with Visual Basic .NET 1/e
Type=Corr SAS.
Non-parametric Analysis of the Variance in SAS®
A programming language
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Presentation transcript:

中国人民大学 统计学院 王 剑 From SAS to R

你属于哪一类 ? 既熟悉 SAS ,又熟悉 R 熟悉 SAS , 但不熟悉 R 不熟悉 SAS ,但熟悉 R 既不熟悉 SAS ,也不熟悉 R

SAS 和 R 的本质区别 R Requires all the data to be in memory SAS Reads one observation at a time

Code Data Example; input Name$ X1-X2; Xm= mean(Of X1-X2); cards; Zhao Wang ; proc print; run; SASR Example=data.frame( Name=c("Zhao","Wan g"), X1=c(22,24),X2=c(98, 96)) mean(Example[,2-3]) Name X1 X2 1 Zhao Wang X1 X Obs Name X1 X2 Xm 1 Zhao Wang Output

FREE SASR Data Structure Rectangular data set Rectangular data frame, vector, matrix, list. Choosing data All the data for an analysis must be in a single data set Analyses can freely combine variables from different data frames or other structures. Choosing Observations Uses logical conditions in IF, SELECT IF, WHERE Uses wide variety of selection by index value, variable name, logical condition -—— R for SAS SPSS users, Bob Muenchen

SAS 的五大部分 Statistical and graphical procedures Data input and management statements Output Delivery System A macro language A matrix language to add new algorithms(IML) Data Example; input Name$ X1-X2; Xm= mean(Of X1-X2); cards; Zhao Wang ; proc print; run; SAS