Download presentation
Presentation is loading. Please wait.
Published byBarrie Tyler Modified over 9 years ago
1
Collection and Analysis of Data CPH 608 Spring 2015
2
Analysis "What gets measured gets done." —Anonymous
3
SAS-A Brief Introduction Lava Timsina lava.timsina@uky.edu 2/25/2015 3
4
Outline Installing SAS Data structure Reading Data Data management Analysis Simple Graphs Exporting your results 4
5
Installing SAS Download https://download.uky.edu/ Register to get licensing information and installation instructions for SAS Virtual desktop environment (MyVirtualDen) provided by UKIT 5
6
Data Structures Common data formats – SAS data sets – MS Excel and MS Access – DBMS tables – Text files – SPSS … 6
7
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
8
Data: ID NAMEGENDEREXAM 1EXAM 2HOMEWORK GRADE STATE 1001 Lava Timsina M 80 84 ANew Jersey 1002Ramesh Neupane M 85 89 ANebraska Writing data 8
9
Example SAS code
10
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
11
Example SAS code ExampleNLSPHS
12
Permanent SAS Data Creating permanent sas datafiles (*.sas7bdat) – Need to define a sas library – Need to specify the path/directory for the library 12
13
Example SAS Code 13
14
Data Management Creating variables Deleting variables Deleting observations Renaming variables 14
15
Example SAS Code 15
16
Analysis Descriptive statistics Regression- bivariate and multivariate linear 16
17
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
18
Output the results PDF RTF CSV HTML XLS … 18
19
SAS codes-examples 19
20
learndataanalysis.wordpress.com
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.