The LAB introduces the SAS language, the SAS macro language, and some SAS procedures for data manupulation and statistical analysis. The focus is on linear regression models.
material (slides, handouts, ecc) will be placed on Moodle
Learning Objectives
On completion of this LAB, students should:
● Have knowledge about basic SAS language concepts for data manipulation
● Own ability to use SAS for processing and summarizing data
● Own ability to estimate a regression model
Prerequisites
Topics included in the first year Statistics courses (descriptive statistics and inference)
Teaching Methods
Videoregistrazioni per autoapprendimento Practical lessons using SAS on example data sets and case studies.
Type of Assessment
Written assinments during the class period (homeworks) plus a final exam. The objective of the final exam is to test students’ practical skills acquired during the workshop. The final exam will be a set of exercises and problems to be solved using SAS.
Course program
Introduction to SAS: SAS Studio, the SAS language, SAS Data Set, DATA and PROC Step
Data access: reading data, libraries and data sets, the CONTENTS procedure, importing EXCEL files, informats, the INPUT and INFILE statements.
Data manipulation: use of the data step to modify data, creation and modification of variables, SAS functions, IF-THEN-ELSE statements; selection of observations in the data step, use of the Iterative DO, DO WHILE, and DO UNTIL loops, the ARRAY statement. Introduction to SAS macro language.
Introduction to SAS procedures: sorting, printing and synthesis of data with SAS Base procedures: selection of observations with the WHERE statement, assignment and creation of formats; summarizing data with PROC MEANS, creation of tables with PROC FREQ and PROC TABULATE
Introduction to ODS (Output Delivery System): creating output in HTML and PDF
Introduction to SAS / GRAPH
Linear regression with SAS.