Collection and Analysis of Data CPH 608 Spring 2015.

Slides:



Advertisements
Similar presentations
Technology Short Courses: Spring 2010 Kentaka Aruga
Advertisements

Introduction to SAS. What is a data set? A data set (or dataset) is a collection of data, usually presented in tabular form. Each column represents a.
The SAS ® System Additional Information on Statistical Analysis Programming.
The INFILE Statement Reading files into SAS from an outside source: A Very Useful Tool!
10. NLTS2 Documentation Overview. 1 Prerequisites Recommended modules to complete before viewing this module  1. Introduction to the NLTS2 Training Modules.
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.
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.
Public Health 5415 Biostatistical Methods II Spring 2005 Greg Grandits Class Times Monday10:10am-12:05pm Wednesday10:10am-11:00am.
Today: Run SAS programs on Saturn (UNIX tutorial) Runs SAS programs on the PC.
SAS BASICS Technology Short Courses: Fall 2009 Kentaka Aruga.
Biostatistical Methods II PubH 6415 Spring PubH 6415 – Biostatistics I Instructor: Susan Telke (office hours: lecture.
QM Spring 2002 Business Statistics SPSS: A Summary & Review.
A Simple Guide to Using SPSS© for Windows
Microsoft Access Exporting Access Data and Mail Merging.
So, You’re Going to Write an Empirical Paper Statlab Workshop October 31 st, 2003 David Nickerson.
Basic And Advanced SAS Programming
SPSS 1: An Introduction to the Statistical Package SPSS Suzie Cro MRC Clinical Trials Unit.
SAS Workshop INTRODUCTORY ASPECTS SPRING 2012 January 20121K. F. O'Brien.
Creating SAS® Data Sets
Introduction To Correlation with SAS Sam Gordji Weir 107.
11 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Importing Text Files 2.4 Editing Tables in the.
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.
Chapter 2: Working with Data in a Project
SAS Workshop Lecture 1 Lecturer: Annie N. Simpson, MSc.
SAS: The last of the great mainframe stats packages STA431 Winter/Spring 2015.
Introduction to SPSS Edward A. Greenberg, PhD
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.
Statistical Modeling with SAS/STAT Cheng Lei Department of Electrical and Computer Engineering University of Victoria April 9, 2015.
Learning the TSP2: a guide for students at the 国際総合学類筑波大学 RUNNING REGRESSIONS FROM A SPREADSHEET FILE If you are using a network browser to view this program,
Chapter 1 Introduction to SAS ® Enterprise Guide ®
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.
Copyright © 2008 SAS Institute Inc. All rights reserved. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks.
Knowing Understanding the Basics Writing your own code SAS Lab.
Chapter 1: Introduction to SAS  SAS programs: A sequence of statements in a particular order  Rules for SAS statements: –Every SAS statement ends in.
Lesson 2 Topic - Reading in data Chapter 2 (Little SAS Book)
R packages/libraries Data input/output Rachel Carroll Department of Public Health Sciences, MUSC Computing for Research I, Spring 2014.
Introduction to Enterprise Guide Jennifer Schmidt Rhonda Ellis Cassandra Hall.
Regression in SAS Caitlin Phelps. Importing Data  Proc Import:  Read in variables in data set  May need some options incase SAS doesn’t guess the format.
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.
Laboratory 1. Introduction to SAS u Statistical Analysis System u Package for –data entry –data manipulation –data storage –data analysis –reporting.
Lecture 3 Topic - Descriptive Procedures Programs 3-4 LSB 4:1-4.4; 4:9:4:11; 8:1-8:5; 5:1-5.2.
Introduction to Correlation & Regression with SAS Sam Gordji Weir 107.
Analysis Introduction Data files, SPSS, and Survey Statistics.
Chapter 1: Overview of SAS System Basic Concepts of SAS System.
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.
E-STAT and Function Modelling for the Grade 9-12 Math Curriculum Joel Yan and Jennifer Hall Statistics Canada, Ottawa.
1 PEER Session 02/04/15. 2  Multiple good data management software options exist – quantitative (e.g., SPSS), qualitative (e.g, atlas.ti), mixed (e.g.,
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.
ODS TAGSETS - a Powerful Reporting Method Derek. 2 Agenda Understanding the tagset How to use tagsets Conclusion.
Four way analysis Nursing home residence Gender Age Death.
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.
Android Online Training AcuteSoft: India: , Land Line: +91 (0) USA: , UK : +44.
Introduction to the SPSS Interface
SAS: The last of the great mainframe stats packages
Chapter 1: Introduction to SAS
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.
Let’s continue to review some of the statistics you’ve learned in your first class: Bivariate analyses (two variables measured at a time on each observation)
Introduction to the SPSS Interface
Presentation transcript:

Collection and Analysis of Data CPH 608 Spring 2015

Analysis "What gets measured gets done." —Anonymous

SAS-A Brief Introduction Lava Timsina 2/25/2015 3

Outline Installing SAS Data structure Reading Data Data management Analysis Simple Graphs Exporting your results 4

Installing SAS Download Register to get licensing information and installation instructions for SAS Virtual desktop environment (MyVirtualDen) provided by UKIT 5

Data Structures Common data formats – SAS data sets – MS Excel and MS Access – DBMS tables – Text files – SPSS … 6

Data Structures SAS Data Set – Columns: Variables Name – Begins with letter or underscores but may contain numbers as well. Spaces are not allowed Type – Define character (String) or numeric Length – Rows: Observations 7

Data: ID NAMEGENDEREXAM 1EXAM 2HOMEWORK GRADE STATE 1001 Lava Timsina M ANew Jersey 1002Ramesh Neupane M ANebraska Writing data 8

Example SAS code

Reading data Reading data from external files Importing files Processing of data Creating permanent data for future use Creating log file for future reference 10

Example SAS code ExampleNLSPHS

Permanent SAS Data Creating permanent sas datafiles (*.sas7bdat) – Need to define a sas library – Need to specify the path/directory for the library 12

Example SAS Code 13

Data Management Creating variables Deleting variables Deleting observations Renaming variables 14

Example SAS Code 15

Analysis Descriptive statistics Regression- bivariate and multivariate linear 16

Procedures in SAS Some basic procedures in SAS – Proc freq – Proc means – Proc univariate – Proc sgplot – Proc corr – Proc reg – Proc logistic – Proc gchart 17

Output the results PDF RTF CSV HTML XLS … 18

SAS codes-examples 19

learndataanalysis.wordpress.com