Categorical Data Analysis using SAS. 2 List the components of a SAS program. Open an existing SAS program and run it. Discuss the Chi Square Test of Independence.

Slides:



Advertisements
Similar presentations
Short introduction to the use of PEARL General properties First tier assessments Higher tier assessments Before looking at first and higher tier assessments,
Advertisements

Technology Short Courses: Spring 2010 Kentaka Aruga
Data Base. Objective Become familiar with database terminology. Create a project to display data for a single database table. Use a DataGrid control.
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.
Class Exercise. Hays (5 th ed) p. 520  A study involved children of three age groups:  A1=5yrs, A2= 6 years, A3 = 7 years.  Second Factor was formal.
Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
Statistics in Science  Introducing SAS ® software Acknowlegements to David Williams Caroline Brophy.
Today: Run SAS programs on Saturn (UNIX tutorial) Runs SAS programs on the PC.
Biostatistical Methods II PubH 6415 Spring PubH 6415 – Biostatistics I Instructor: Susan Telke (office hours: lecture.
Introduction to SAS ISYS 650. What Is SAS? SAS is a collection of modules that are used to process and analyze data. It began in the late ’60s and early.
SAS ® Regression Essentials. 2 List the components of a SAS program. Open an existing SAS program and run it. Objectives.
NonParametric Statistics using SAS. 2 List the components of a SAS program. Open an existing SAS program and run it. Objectives.
Basic And Advanced SAS Programming
EPLS Lab Software Orientation SAS. Orientation Overview Background Getting Started SAS Windows.
Understanding SAS Data Step Processing Alan C. Elliott stattutorials.com.
Introduction to SAS Essentials Mastering SAS for Data Analytics Alan Elliott and Wayne Woodward SAS Essentials - Elliott & Woodward1.
Into to SAS ®. 2 List the components of a SAS program. Open an existing SAS program and run it. Objectives.
SAS ® ANOVA Essentials. 2 List the components of a SAS program. Open an existing SAS program and run it. Objectives.
SAS Lecture 5 – Some regression procedures Aidan McDermott, April 25, 2005.
Introducing Java.
Copyright © 2006, SAS Institute Inc. All rights reserved. Enterprise Guide 4.2 : A Primer SHRUG : Spring 2010 Presented by: Josée Ranger-Lacroix SAS Institute.
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
Chapter 9 Producing Descriptive Statistics PROC MEANS; Summarize descriptive statistics for continuous numeric variables. PROC FREQ; Summarize frequency.
Introduction to SAS Essentials Mastering SAS for Data Analytics Alan Elliott and Wayne Woodward SAS ESSENTIALS -- Elliott & Woodward1.
Introduction to SAS BIO 226 – Spring Outline Windows and common rules Getting the data –The PRINT and CONTENT Procedures Manipulating the data.
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
Introduction to Computational Linguistics Programming I.
Introduction to SAS. What is SAS? SAS originally stood for “Statistical Analysis System”. SAS is a computer software system that provides all the tools.
Chapter 6 SAS ® OLAP Cube Studio. Section 6.1 SAS OLAP Cube Studio Architecture.
Proc Sql Kelly Hardman Aug. 9, 2007 BMTRY 789. What is Proc Sql? SQL: Structured Query Language It is a procedure that combines the data and proc steps.
1 Experimental Statistics - week 2 Review: 2-sample t-tests paired t-tests Thursday: Meet in 15 Clements!! Bring Cody and Smith book.
Quantify the Example Data First, code and quantify the data (assign column locations & variable names) Use the sample data to create a data set from the.
Math 3400 Computer Applications of Statistics Lecture 1 Introduction and SAS Overview.
SAS 介绍和举例 Presented by 经济实验教学中心 商务数据挖掘中心. Raw Data Read in Data Process Data (Create new variables) Output Data (Create SAS Dataset) Analyze Data Using.
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
Knowing Understanding the Basics Writing your own code SAS Lab.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
COMPUTER PROGRAMMING. A Typical C++ Environment Phases of C++ Programs: 1- Edit 2- Preprocess 3- Compile 4- Link 5- Load 6- Execute Loader Primary Memory.
ISU Basic SAS commands Laboratory No. 1 Computer Techniques for Biological Research Animal Science 500 Ken Stalder, Professor Department of Animal Science.
April 4 Logistic Regression –Lee Chapter 9 –Cody and Smith 9:F.
1 EPIB 698E Lecture 1 Notes Instructor: Raul Cruz 7/9/13.
Pseudocode Algorithms Using Sequence, Selection, and Repetition
How to start using SAS Tina Tian. The topics An overview of the SAS system Reading raw data/ create SAS data set Combining SAS data sets & Match merging.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics: A First Course Fifth Edition.
Priya Ramaswami Janssen R&D US. Advantages of PROC REPORT -Very powerful -Perform lists, subsets, statistics, computations, formatting within one procedure.
ECA 225 Applied Interactive Programming1 ECA 225 Applied Online Programming basics.
ISQS 6347, Data & Text Mining 1 ISQS 6339, Data Management & Business Intelligence Data Preparation for Analytics Using SAS Zhangxi Lin Texas Tech University.
Chapter 1: Overview of SAS System Basic Concepts of SAS System.
How to start using SAS SARBAJIT MUKHERJEE. WHAT IS SAS? SAS stands for Statistical Analysis System. Useful for the following types of task: 1. Data entry,
Lesson 8 - Topics Creating SAS datasets from procedures Using ODS and data steps to make reports Using PROC RANK Programs in course notes LSB 4:11;5:3.
Computing with SAS Software A SAS program consists of SAS statements. 1. The DATA step consists of SAS statements that define your data and create a SAS.
FORMAT statements can be used to change the look of your output –if FORMAT is in the DATA step, then the formats are permanent and stored with the dataset.
ISQS 6347, Data & Text Mining 1 ISQS 6339, Data Management & Business Intelligence Data Preparation for Analytics Using SAS Zhangxi Lin Texas Tech University.
Topic 29: Three-Way ANOVA. Outline Three-way ANOVA –Data –Model –Inference.
Chapter 17 Supplement: Alternatives to IF-THEN/ELSE Processing STAT 541 ©Spring 2012 Imelda Go, John Grego, Jennifer Lasecki and the University of South.
1 EPIB 698C Lecture 1 Instructor: Raul Cruz-Cano
SAS Programming Training Instructor:Greg Grandits TA: Textbooks:The Little SAS Book, 5th Edition Applied Statistics and the SAS Programming Language, 5.
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Copyright © 2006, SAS Institute Inc. All rights reserved. Company confidential - for internal use only SAS/IML Studio Ian Sedgwick.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
Introduction to SAS®.
PROC SQL, Overview.
Chapter 1 Introduction.
We’ll now consider 2x2 contingency tables, a table which has only 2 rows and 2 columns along with a special way to analyze it called Fisher’s Exact Test.
Defining and Calling a Macro
Chapter 1 Introduction.
SAS® Regression Essentials
Introduction to SAS Lecturer: Chu Bin Lin.
Presentation transcript:

Categorical Data Analysis using SAS

2 List the components of a SAS program. Open an existing SAS program and run it. Discuss the Chi Square Test of Independence Objectives

3 DATA steps are typically used to create SAS data sets. PROC steps are typically used to process SAS data sets (that is, generate reports and graphs, edit data, and sort data). A SAS program is a sequence of steps that the user submits for execution. Raw Data DATA Step Report SAS Data Set PROC Step SAS Programs

4 DATA one; INPUT Name $ Gender $ Runtime Age Weight ; DATALINES; Donna F Gracie F Luanne F Mimi F Chris M ; RUN; PROC PRINT DATA=one; RUN; PROC REG DATA=one; MODEL Runtime=Weight; RUN; DATA Step PROC Steps SAS Programs

5 Interactive windows enable you to interface with SAS. SAS Windowing Environment

6 Open the SAS program “example.sas.” Submit the program and examine the results. Data for today's class located at Exercises

7 Learn the two fundamental SAS syntax programming rules. Write a Data Step to read a course data file. Objectives

8 SAS statements have these characteristics: usually begin with an identifying keyword always end with a semicolon DATA staff; INPUT LastName $ FirstName $ JobTitle $ Salary; DATALINES; …insert text here… RUN; PROC PRINT DATA=staff; RUN; Fundamental SAS Syntax Rules

Example of a typical text data set. Name Gender Runtime Age Weight Donna F Gracie F Luanne F Mimi F Chris M

DATA one; INPUT Name $ Gender $ Runtime Age Weight; DATALINES; Donna F Gracie F Luanne F Mimi F Chris M ; RUN; PROC PRINT DATA=one; RUN; Creating a SAS data set: The Data Step

Typical Dataset Degree Age Gender Salary 0 41 Female Low 1 41 Female Low 1 44 Female Low 0 39 Female Low 0 40 Female Medium 1 37 Female Medium 0 38 Female Medium 0 35 Female High 0 36 Female High …

12 Write a SAS program to read the data located in the “salary.txt” text file. Exercises

Categorical Data Analysis ChiSQ Test of Independence

14 The chisq.sas program contains several examples of using SAS to create and analyze contingency tables. During the remainder of this class, we will open that program discuss the function of each of the procedures and demo it in SAS. SAS Procedures