Knowing Understanding the Basics Writing your own code SAS Lab.

Slides:



Advertisements
Similar presentations
Summary Statistics/Simple Graphs in SAS/EXCEL/JMP.
Advertisements

Technology Short Courses: Spring 2010 Kentaka Aruga
How to Import an Excel File Using the SAS Import Wizard SAS 9 for Windows.
The INFILE Statement Reading files into SAS from an outside source: A Very Useful Tool!
Statistical Methods Lynne Stokes Department of Statistical Science Lecture 7: Introduction to SAS Programming Language.
Descriptive Statistics. Descriptive Statistics: Summarizing your data and getting an overview of the dataset  Why do you want to start with Descriptive.
Knowing Understanding the Basics Writing your own code part 2 SAS Lab.
Introduction to SAS Programming Christina L. Ughrin Statistical Software Consulting Some notes pulled from SAS Programming I: Essentials Training.
Statistics in Science  Introducing SAS ® software Acknowlegements to David Williams Caroline Brophy.
Introduction to SPSS Allen Risley Academic Technology Services, CSUSM
Today: Run SAS programs on Saturn (UNIX tutorial) Runs SAS programs on the PC.
Ann Arbor ASA ‘Up and Running’ Series: SPSS Prepared by volunteers of the Ann Arbor Chapter of the American Statistical Association, in cooperation with.
SAS BASICS Technology Short Courses: Fall 2009 Kentaka Aruga.
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.
Descriptive Statistics In SAS Exploring Your Data.
AEB 37 / AE 802 Marketing Research Methods Week 5
Introduction to SPSS (For SPSS Version 16.0)
Basic And Advanced SAS Programming
Welcome to the Exciting World of ! Lessons to familiarize yourself with.
Copyright © 2006, SAS Institute Inc. All rights reserved. Shortcuts- what you may not know that can save you time! Elizabeth Ceranowski SAS Student Programs.
Introduction to SPSS (For SPSS Version 16.0)
Collection and Analysis of Data CPH 608 Spring 2015.
SAS PROC REPORT PROC TABULATE
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.
HPR Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Introduction to SAS. What is SAS? SAS originally stood for “Statistical Analysis System”. SAS is a computer software system that provides all the tools.
My ODS: Real-World Uses of Modifying Table Templates Steve James Centers for Disease Control and Prevention Atlanta, Ga.
Introduction to HTML Reporting with SAS Welcome to HTML reporting with SAS Sam Gordji, Weir 107.
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.
SAS 介绍和举例 Presented by 经济实验教学中心 商务数据挖掘中心. Raw Data Read in Data Process Data (Create new variables) Output Data (Create SAS Dataset) Analyze Data Using.
SAS Efficiency Techniques and Methods By Kelley Weston Sr. Statistical Programmer Quintiles.
EPIB 698C Lecture 2 Notes Instructor: Raul Cruz 2/14/11 1.
Chapter 1: Introduction to SAS  SAS programs: A sequence of statements in a particular order  Rules for SAS statements: –Every SAS statement ends in.
ISU Basic SAS commands Laboratory No. 1 Computer Techniques for Biological Research Animal Science 500 Ken Stalder, Professor Department of Animal Science.
SAS: The last of the great mainframe stats packages STA431 Winter/Spring 2013.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
Introduction to SAS Welcome to IT’s seminar on stat. packages Sam Gordji, Weir 107.
1 EPIB 698E Lecture 1 Notes Instructor: Raul Cruz 7/9/13.
Laboratory 1. Introduction to SAS u Statistical Analysis System u Package for –data entry –data manipulation –data storage –data analysis –reporting.
SAS Basics. Windows Program Editor Write/edit all your statements here. Log Watch this for any errors in program as it runs. Output Will automatically.
Analysis Introduction Data files, SPSS, and Survey Statistics.
Chapter 1: Overview of SAS System Basic Concepts of SAS System.
PSC 47410: Data Analysis Workshop  What’s the purpose of this exercise?  The workshop’s research questions:  Who supports war in America?  How consistent.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
DTC Quantitative Methods Summary of some SPSS commands Weeks 1 & 2, January 2012.
SAS Basics. Windows Program Editor Write/edit all your statement here.
An Introduction Katherine Nicholas & Liqiong Fan.
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.
1 Chapter 3: Getting Started with Tasks 3.1 Introduction to Task Dialogs 3.2 Creating a Listing Report 3.3 Creating a Frequency Report 3.4 Creating a Two-Way.
Getting Started with GradeQuick. Logging In to GradeQuick Shortcut on the Start Menu First time users enter first initial last name like this (ccornwell)
1 Introduction to SAS Available at
Real Time Remote Access Comparing SAS and SPSS David Price Quy Do April 2013.
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.
HRP Copyright © Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and.
Based on Learning SAS by Example: A Programmer’s Guide Chapters 1 & 2
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 5 & 6 By Ravi Mandal.
SAS ® 101 Based on Learning SAS by Example: A Programmer’s Guide Chapters 3 & 4 By Tasha Chapman, Oregon Health Authority.
Introduction to the SPSS Interface
Introduction to SAS Base (using SAS Studio)
SAS Programming Introduction to SAS.
Instructor: Raul Cruz-Cano
Tamara Arenovich Tony Panzarella
Introduction to SAS A SAS program is a list of SAS statements executed in order Every SAS statement ends with a semicolon! SAS statements can be in caps.
CSCI N207 Data Analysis Using Spreadsheet
Instructor: Raul Cruz 9/4/13
Introduction to SAS Lecturer: Chu Bin Lin.
Introduction to the SPSS Interface
Presentation transcript:

Knowing Understanding the Basics Writing your own code SAS Lab

Tutorials Parts 1 and 2 review  What are Libraries?  What are they essentially used for?  What is the Editor (& Enhanced Editor) for?  What is the Output window for?  What is the Log for?

Explorer/Results  Why do we look in the Explorer window?  Why do we look in the Results window?

Practice Step 1  Open SAS and Create a New Dataset called ‘Fitness’  Use this file:  K:\tsupra\MARK 2042\fitness.txt

Variables  If we were using Excel, think of these as the column headings  Not static – i.e. weight  You can create new ones based on variables that already exist – i.e. weight2  Assign values to variables  Var = Immigrant  Values: 1=yes0=no

Observations  If this were Excel, we would call these ‘rows’  If this were Access, we would call these ‘records’  How many Observations are in the dataset ‘Fitness’?

Practice Step 2 – create Fitness dataset copy  Write another dataset with the (same name) ‘Fitness’ to a new library ‘Work’  Data work.fitness;  Open dataset Fitness from sasuser library to get observations.  set sasuser.fitness;  Highlight and Run This  Look in libraries to see that (working copy) datasets are there

Create a new variable in an existing dataset  Make a variable ‘weight2’ that converts kilograms (from the weight variable) to pounds at a rate  Comment:  /*convert variable weight from kg to lbs*/  Syntax:  weight2 = *weight;  Highlight and run. What happened? Why?

The Output Window YYYYou may only view, print or save TTTTo edit: save as.txt file and do the changes in MS Word WWWWorks in conjunction with the Results window

Procedures (Descriptive Statistics)  What is PROC FREQ for?  proc freq data = work.fitness; table group; run;

Procedures (Descriptive Stats) cont…  What is PROC MEANS for?  proc means data = work.fitness; var age weight2; run;

Procedures (Descriptive Stats) cont…  What is PROC CONTENTS for?  proc contents data = work.fitness; run;

Practice Step 3 – do it again!  Generate a dataset ‘MyGrade’ with the following specs:  Variables: Age, CourseCode, CurGPA, TargGrd  Assign values to Var TargGrd:  A+=0, A=1, B=2  Create 3 Observations  Put into the sasuser library  Highlight and run this  Check log and libraries to see that you successfully completed the task

MyGrade continued…  Create a working copy of MyGrade in the Work Library.  Make a variable ‘newGPA’ that converts your current course grade point average (from the CurGPA variable) to an International level of GPA * at a 1.75 rate  * This is fictional

MyGrade continued…  Generate Output (including an HTML file) for the 1.contents of the data. 2.Means of the data based on the variables of _____ and _____. 3.Frequency of the data based on the _____. 4.FILL IN THE BLANKS, highlight and RUN. (what makes most sense?)

Knowing Writing your own Code