BMTRY 789 Introduction to SAS Programming Lecturer: Annie N. Simpson, MSc.

Slides:



Advertisements
Similar presentations
Preparing Data for Quantitative Analysis
Advertisements

CSc 2310 Principles of Programming (Java)
Welcome to Physics 2025! ( General Physics Lab 2 - Spring 2013)
Introduction to Computer Programming I CSE 113
Economics 1 Principles of Microeconomics Instructor: Ted Bergstrom.
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 Statistical Computing in Clinical Research Biostatistics 212 Course director: Mark Pletcher Teaching Assistant: Lee Zane.
CS101- Lecture 11 CS101 Fall 2004 Course Introduction Professor Douglas Moody –Monday – 12:00-1:40 – – –Web Site: websupport1.citytech.cuny.edu.
Dr. Tatiana Erukhimova [year] Overview of Today’s Class Folders Syllabus and Course requirements Tricks to survive Mechanics Review and Coulomb’s Law.
Presented by Janine Termine Welcome 090 PreAlgebra.
Summer 2009 Math 1431 and Math 1432 begin. What to do… Watch the orientation video from the spring online classes. Please note that the spring classes.
Topic 1: Class Logistics. Outline Class Web site Class policies Overview References Software Background Reading.
CSCI 347 – Data Mining Lecture 01 – Course Overview.
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
Presented by Janine Termine Welcome to E-Learning.
CSc 2310 Principles of Programming (Java) Dr. Xiaolin Hu.
CS 106 Introduction to Computer Science I 01 / 25 / 2010 Instructor: Michael Eckmann.
Object Oriented Programming (OOP) Design Lecture 1 : Course Overview Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang.
Presented by Janine Termine Welcome 095 Basic Algebra.
Object Oriented Programming (OOP) Design Lecture 1 : Course Overview Bong-Soo Sohn Associate Professor School of Computer Science and Engineering Chung-Ang.
Introduction to SAS. What is SAS? SAS originally stood for “Statistical Analysis System”. SAS is a computer software system that provides all the tools.
Math 3400 Computer Applications of Statistics Lecture 1 Introduction and SAS Overview.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
Astronomy 114 Lab Section 211, Professor Weigel. Outline for Today About Goals for this class Attendance Syllabus Safety Star Project Apparent vs. Absolute.
English 370 Thursdays 6:05-8:50 PM Melissa Gunby.
ICS 6B Boolean Logic and Algebra Fall 2015
Bilgisayar Mühendisliği Bölümü CENG 102 – Computer Programming Melek OKTAY Syllabus Administrative Information.
Welcome to CS 115! Introduction to Programming. Class URL Write this down!
Operations Fall 2015 Bruce Duggan Providence University College.
Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2010.
Welcome to Physics 2015! ( General Physics Lab 1 - Fall 2012)
Introduction to Statistical Computing in Clinical Research Biostatistics 212.
Object Oriented Programming (OOP) Design Lecture 1 : Course Overview Bong-Soo Sohn Associate Professor School of Computer Science and Engineering Chung-Ang.
Welcome to the MTLC MATH 115 Spring MTLC Information  Hours of Operation  Sunday:4:00pm – 10:00pm  Monday – Thursday: 8:00am – 10:00pm  Friday:8:00am.
CS 1150 – Lab #8 – Using Algorithms for Painting TA – Sanjaya Wijeratne – Web Page -
King Saud UniversityCSC112 - First Semester CSC 112 Java Programming I Introduction.
BMTRY 789 Lecture 11: Debugging Readings – Chapter 10 (3 rd Ed) from “The Little SAS Book” Lab Problems – None Homework Due – None Final Project Presentations.
Introduction to MATLAB 7 Engineering 161 Engineering Practices II Joe Mixsell Spring 2012.
Summer SAS Workshop Lecture 3. Summer SAS Workshop Website
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.
Summary CGS 3460, Lecture 43 April 26, 2006 Hen-I Yang.
King Saud University1 CSC 112 Java Programming I Introduction.
Logic & Proofs Summer Session II Instructor: Karin Howe.
Introduction to Financial Management. Overview of Financial Management Introduction Keys to Success Recitations Class Structure - Syllabus Text – Financial.
BMTRY 789 Lecture 6: Proc Sort, Random Number Generators, and Do Loops Readings – Chapters 5 & 6 Lab Problem - Brain Teaser Homework Due – HW 2 Homework.
BMTRY 789 Lecture9: Proc Tabulate Readings – Chapter 11 & Selected SUGI Reading Lab Problems , 11.2 Homework Due Next Week– HW6.
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.
FEDERAL TAX AB256 Professor Ron Hathaway. WELCOME Introductions contact information: Ron Hathaway (c) AIM: DiverRescue4.
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
Online Programming| Online Training| Real Time Projects | Certifications |Online Classes| Corporate Training |Jobs| CONTACT US: STANSYS SOFTWARE SOLUTIONS.
1 1.Log in to the computer in front of you –Temp account: 210class / 2.Update your in Cascadia's system –If I need to you I'll use.
BUS 310 Statistics Bill Remus. u TuTh 1:30pm and 3pm u Bill Remus u C502 Office Hours W 1:30-4:30 and By Appointment u Phone: u
PSYC 2308 Human Growth & Development/Childhood & Adolescence Denise R. Boyd, EdD CRN# Summer, 2016 Mini-Term 3 Weeks.
PSYC 2314 Human Growth & Development/Lifespan Denise R. Boyd, EdD CRN# 12725, Summer, 2016 Mini-Term 3 Weeks.
Object Oriented Programming (OOP) Design Lecture 1 : Course Overview
PSYC 2301 Introduction to Psychology
IST256 : Applications Programming for Information Systems
Introduction to Programming
Object Oriented Programming (OOP) Design Lecture 1 : Course Overview
Welcome to CS 1010! Algorithmic Problem Solving.
Welcome to CS 1010! Algorithmic Problem Solving.
Welcome to CS 1301! Principles of Programming I.
Class Introduction BSAD 30 Fall 2018 Dave Novak
Computer Programming 1 introduction to JAVA Lecture 1 Instructor: Ruba A. Salamah Islamic University of Gaza.
Guide: Report results Version of Ladok by the latest update:
Programming Fundamentals Lecture #1 Overview of Computer Programming
Presentation transcript:

BMTRY 789 Introduction to SAS Programming Lecturer: Annie N. Simpson, MSc.

Summer 2009 BMTRY 789 Intro. To SAS Programming2 Syllabus DEPARTMENT: Biostatistics, Bioinformatics, and Epidemiology PRINCIPAL INSTRUCTOR: A. Simpson, MSc. METHODS OF EVALUATION: Pass/No Pass (2 Credit Hours) Homework Assignments 70% Class Preparation and Participation 20% Group Presentation 10% READINGS: Readings assigned for a class are expected to be read prior to that class session. REQUIRED TEXT: Applied Statistics and the SAS Programming Language. Cody R.P. and Smith, J.K. (5 th Edition) Prentice Hall, Upper Saddle River, NJ WHEN OFFERED: Summer Semester, 12 weeks, Wed 10:00am-12:30pm

Summer 2009 BMTRY 789 Intro. To SAS Programming3 Syllabus (cont.) METHODS OF EVALUATION: Pass/No Pass (2 Credit Hours) Class Preparation and Participation 20% Homework (70%): : Homework is the main method of evaluation (AND PRACTICE!) 7-9 HWS, 1 free miss, 4 “√ - ” or less = your pass is in jeopardy (depending on attendance and final presentation). Attendance (20%): Attendance is required. If ≥3 of the 11 classes are missed you will automatically not pass. Final Presentation (10%): Required: No final presentation, no pass

Summer 2009 BMTRY 789 Intro. To SAS Programming4 What are your expectations?

Summer 2009 BMTRY 789 Intro. To SAS Programming5 Syllabus (cont.) DETAILED STATEMENT OF OBJECTIVE: To introduce students to the concepts and methods of programming using SAS, and to expose them to other statistical software packages through guest lecturers. At the end of the course, the student will be able to: 1. Read basic SAS syntax and functions; 2. Enter raw data and import data from other sources into SAS; 3. Manipulate SAS data to construct flat and vertical files structured to answer specific research questions; 4. Program procedures to describe the characteristics of continuous and categorical variables; 5. Be aware of other software packages and the conditions under which they may be superior to SAS for analytical purposes; 6. Be able to debug programs and to use assorted references, both online and text, to learn new SAS procedures and functions, as well as solve programming challenges. 7. Be familiar with individuals at MUSC with extensive experience in data manipulation, SAS and other programming languages.

Summer 2009 BMTRY 789 Intro. To SAS Programming6 CLASS SCHEDULE LectureDateTitleReadings 15/20 Overview of SAS None 25/27 SAS syntax, variable naming rules, entering your own data, and Input Statement Chapter 1, 2, 12 & 13 6/3 No Class on this day, but HW 1 is still due by 5pm in Annie’s mailbox 36/10 Categorical data and working with dates and longitudinal data Chapters 3 & 4 46/17 Subsetting, Merging, Construction of Flat Files from Vertical, etc. Chapter 14 56/24 Random Number Generators, If-Then_Else and Do Loops Chapter 5 & 6 67/1 No Class on this day, but HW 3 Libname quiz is due via or in my mailbox 77/8 Conquering Proc gPLOT, Output Statements and the Output Delivery System (ODS) SAS Functions, especially dealing with dates Chapters 7, 17, 18 & Selected Readings

Summer 2009 BMTRY 789 Intro. To SAS Programming7 CLASS SCHEDULE (cont.) LectureDateTitleReadings 87/15 Arrays and Advanced Analytical Data set Creation Chapter 2 & 3 97/22 Intro. To Macro Programming Chapters 19 & Selected Readings 107/22 Scoring a Test and Proc Tabulate Chapter 11 & Selected Readings 118/5 Debugging your Code AND Final Presentations on Pieces of Useful SAS Code and/or tricks (class will take place in the dept., not the library!) None

Summer 2009 BMTRY 789 Intro. To SAS Programming8 SAS Help Resources Nothing replaces experience / trial and error Help files from the program, all the manuals you could ever want or need! SAS Books by users (I have a shelf full) SAS on the web:

Summer 2009 BMTRY 789 Intro. To SAS Programming9 Example *Import Data using the File->Import Data pull down menu; *Call the new SAS data set STROKE; *Add a new hypertension indicator to the data set based on bp; *Print the new data set out to the screen; Libname Annie “C:\DATA”; DATA Annie.Stroke; Set Stroke; If sbp > 140 and dbp > 90 then Hypertensive=1; Else If sbp =. Or dbp =. Then Hypertensive=.; Else Hypertensive = 0; RUN; PROC PRINT DATA = Annie.Stroke; /*Prints the results*/ RUN;

Summer 2009 BMTRY 789 Intro. To SAS Programming10 Commenting Your Code Comments are usually used to annotate the program, making it easier for someone to read your program and understand what you have done and why. YOU WILL NOT GET FULL CREDIT IN THIS CLASS IF YOUR CODE ISN’T VERY WELL COMMENTED!

Summer 2009 BMTRY 789 Intro. To SAS Programming11 Rows/Columns & Data Types What is the SAS lingo for Rows of Data? What is the SAS lingo for Columns? What are the two types of data? Where do dates fit in?

Summer 2009 BMTRY 789 Intro. To SAS Programming12 Rules for SAS names How long (# of characters) can variable names be? What are the two things that can begin a variable name? What can NOT be contained in a variable name? Is SAS case sensitive? When?

Summer 2009 BMTRY 789 Intro. To SAS Programming13 Reading the SAS Log Every time you run a SAS job, READ the Log window first! Every time you have a question for me I will ask, “What does you SAS Log say?”.

Summer 2009 BMTRY 789 Intro. To SAS Programming14 Let’s go over how to use the SAS Import Wizard to get Excel Data into SAS… Open the Import Wizard Instructions.

Summer 2009 BMTRY 789 Intro. To SAS Programming15 Test Your SAS Knowledge Find the class 1 in-class assignment from the class website. Use the Excel Data file to complete the questions. For brand new SAS programmers we will do this together. New students to SAS, please do the Practice problems on the websites’ Homework page first.