SAS® Regression Essentials

Slides:



Advertisements
Similar presentations
Statistical Methods Lynne Stokes Department of Statistical Science Lecture 7: Introduction to SAS Programming Language.
Advertisements

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.
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.
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.
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.
Confidential Acumen Business Rule Manager A Graphical Business Rules Environment For RuleML
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
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.
Chapter 20 Creating Multiple Observations from a Single Record Objectives Create multiple observations from a single record containing repeating blocks.
Introduction to SAS. What is SAS? SAS originally stood for “Statistical Analysis System”. SAS is a computer software system that provides all the tools.
1 Experimental Statistics - week 2 Review: 2-sample t-tests paired t-tests Thursday: Meet in 15 Clements!! Bring Cody and Smith book.
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.
EPIB 698C Lecture 2 Notes Instructor: Raul Cruz 2/14/11 1.
Lesson 2 Topic - Reading in data Chapter 2 (Little SAS Book)
1 EPIB 698E Lecture 1 Notes Instructor: Raul Cruz 7/9/13.
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.
Priya Ramaswami Janssen R&D US. Advantages of PROC REPORT -Very powerful -Perform lists, subsets, statistics, computations, formatting within one procedure.
Here’s another problem (see section 2.13 on page 54). A file contains two different types of records (say A’s and B’s) and we only want to read in the.
Introduction to SAS Essentials Mastering SAS for Data Analytics Alan Elliott and Wayne Woodward SAS Essentials - Elliott & Woodward1.
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,
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.
ISQS 6347, Data & Text Mining 1 ISQS 6339, Data Management & Business Intelligence Data Preparation for Analytics Using SAS Zhangxi Lin Texas Tech University.
Chapter 2 Getting Data into SAS Directly enter data into SAS data sets –use the ViewTable window. You can define columns (variables) with the Column Attributes.
Lesson 2 Topic - Reading in data Programs 1 and 2 in course notes –Chapter 2 (Little SAS Book)
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.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 3 & 4 By Tasha Chapman, Oregon Health Authority.
PubH 6420 Introduction to SAS Programming
SAS Programming Training
SAS Programming Training
Introduction to SAS®.
Instructor: Raul Cruz-Cano 7/9/2012
Chapter 2: Getting Data into SAS
Two “identical” programs
SAS Programming Introduction to SAS.
PROC SQL, Overview.
the first card insert text here.
Chapter 1: Introduction to SAS
Instructor: Raul Cruz-Cano
Tamara Arenovich Tony Panzarella
Data Management – Audit Trail
Chapter 1 Introduction.
Learning to Program in Python
Defining and Calling a Macro
Chance to make SAS-L History!
Introduction to DATA Step Programming: SAS Basics II
SAS Programming Training
Chapter 1 Introduction.
A LESSON IN LOOPING What is a loop?
Instructor: Raul Cruz 9/4/13
Introduction to SAS Lecturer: Chu Bin Lin.
Introduction to SAS Essentials Mastering SAS for Data Analytics
Introduction to SAS Essentials Mastering SAS for Data Analytics
Presentation transcript:

SAS® Regression Essentials

Objectives List the components of a SAS program. Open an existing SAS program and run it.

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

SAS Programs DATA Step PROC Steps DATA one; INPUT Name $ Gender $ Runtime Age Weight ; DATALINES; Donna F 8.17 42 68.15 Gracie F 8.63 38 81.87 Luanne F 8.65 43 85.84 Mimi F 8.92 50 70.87 Chris M 8.95 49 81.42 ; RUN; PROC PRINT DATA=one; PROC REG DATA=one; MODEL Runtime=Weight; DATA Step PROC Steps

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

Exercises Open the SAS program “example.sas.” Submit the program and examine the results. Files for today's class located at http://faculty.missouri.edu/baconr/sas/reg

Objectives Learn the two fundamental SAS syntax programming rules. Learn to create a SAS dataset from text data. Locate the data for this course Write a Data Step to read a course data file.

Fundamental SAS Syntax Rules 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;

Example of a typical text data set. Name Gender Runtime Age Weight Donna F 8.17 42 68.15 Gracie F 8.63 38 81.87 Luanne F 8.65 43 85.84 Mimi F 8.92 50 70.87 Chris M 8.95 49 81.42

Creating a SAS data set: The Data Step DATA one; INPUT Name $ Gender $ Runtime Age Weight; DATALINES; Donna F 8.17 42 68.15 Gracie F 8.63 38 81.87 Luanne F 8.65 43 85.84 Mimi F 8.92 50 70.87 Chris M 8.95 49 81.42 ; RUN; PROC PRINT DATA=one;

Example of a typical text data set. ‘Name’,‘Gender’,‘Runtime’,‘Age’,‘Weight’ Donna,F,8.17,42,68.15 Gracie,F,8.63,38,81.87 Luanne,F,8.65,43,85.84 Mimi,F,8.92,50,70.87 Chris,M,8.95,49,81.42

Creating a SAS data set: The Data Step DATA one; INFILE CARDS DLM=',' DSD MISSOVER; INPUT Name $ Gender $ Runtime Age Weight; DATALINES; Donna,F,8.17,42,68.15 Gracie,F,8.63,38,81.87 Luanne,F,8.65,43,85.84 Mimi,F,8.92,50,70.87 Chris,M,8.95,49,81.42 ; RUN; PROC PRINT DATA=one;

Data for this course http://faculty.missouri.edu/baconr/sas/KKNR_DATA/

Data set from KKNR directory on my website 'PERSON','SBP','AGE' 1,144,39 2,220,47 3,138,45 4,145,47 5,162,65 6,142,46 7,170,67 8,124,42 9,158,67 10,154,56 …

Exercises Write a SAS program to read the data located in the “sbp.txt” text file. http://faculty.missouri.edu/baconr/sas/KKNR_DATA

SAS Procedures The reg.txt file contains several of the most common SAS procedures used your class. During the remainder of this class, we will open that text file discuss the function of each of the procedures and demo it in SAS.