SlideShare a Scribd company logo
1 of 37
BAS 150
Lesson 7:
SAS Reporting Procs and Descriptive Statistics
• Utilize SAS Procs for reporting
• Incorporate descriptive statistics in reports
• Effectively export charts and data
This Lesson’s Learning Objectives
 PROC Freq
o Options
o Using formats
o Missing data
o Order=
o Multi-dimensional tables
o Statistics
Topics (1 of 2)
 PROC Means
o Options
o Class statement
o Missing data
o Output statement
o _TYPE_ and Chartype
 ODS NOPROCTITLE
Topics (2 of 2)
 PROC Freq can be used to run simple
frequency tables on your data
PROC Freq (1 of 4)
PROC Freq (2 of 4)
Results of PROC Freq of
“Demographics”
 Use the table statement to only print selected
variables
 Use the nocum option to suppress cumulative statistics
 Use the nopercent option to suppress percent statistics
 Can use options together or separately
PROC Freq (3 of 4)
 where statement – Only include selected observations
 format statement – Apply format to selected variables
o Only applies to current procedure
o Can be used to group data
PROC Freq (4 of 4)
 Use formats to group data
Using Formats
 Missing data will be excluded from the analysis
 Will affect percent calculations
Missing Data (1 of 2)
 Use the missing option to include missing values in the frequency table
 Can also create a label for missing values in your PROC Format
Missing Data (2 of 2)
 By default PROC Freq orders your frequency table based on the
internal (unformatted) values
 Use the order= option to change the order
o internal: (Default) Order values by their internal (unformatted)
values
o formatted: Order values by their formatted values
o freq: Order values from the most to least frequent
o data: Order values based on their order in the input dataset
 Missing values, if included in the table, will always be listed first
regardless
Order= (1 of 2)
Order= (2 of 2)
 Can create simple cross-tabulations
Multi-Dimension Tables (1 of 4)
 Use the nocol option to suppress column percent statistics
 Use the norow option to suppress row percent statistics
 Use the nopercent option to suppress total percent
statistics
 Can use options together or separately
Multi-Dimension Tables (2 of 4)
 Use the list option to display cross-tab tables in a list
format
Multi-Dimension Tables (3 of 4)
There are multiple ways to request tables:
Multi-Dimension Tables (4 of 4)
Notation Result
table A * (B C D); Three tables: A by B; A by C; A by D
table (A B) * (C D); Four tables: A by C; A by D; B by C; B by D
table A * B * C; One three-way table with the format Page * Row *
Column.
Each classification of A would appear on a separate page.
table Ques1 - Ques10; Ten tables, one each for Ques1 through Ques10
table VarA -- VarB; One table each for all variables between VarA and VarB
in the SAS dataset (by varnum)
table Ques: ; One table each for all variables that begin with “Ques”
table _numeric_; One table each for all numeric variables
table _character_; One table each for all character variables
table _all_; One table each for all variables
 PROC Freq is also
used to calculate
certain statistics,
such as chi-square,
odds ratio, and
relative risk
Statistics
 PROC Means can be used to run simple
summary statistics on your data
PROC Means (1 of 5)
Results of PROC Means of
“Demographics”
PROC Means (2 of 5)
 Many options to control output of PROC Means
o NMiss Mean Median – Examples of statistics that can be specified in
PROC Means
 (see later slide for list of statistical keywords)
o class statement – Allows for grouping by categorical variables
o var statement – Only provides statistics for listed analysis variables
PROC Means (3 of 5)
Statistics available in PROC Means
PROC Means (4 of 5)
 maxdec= option – Specifies the number of decimal
places for statistics
 where statement – Only include selected observations
 format statement – Apply format to selected variables
o Only applies to current procedure
o Can be used to group class data
PROC Means (5 of 5)
Table can also include multiple class variables
Class Variables (1 of 2)
Table can also include multiple class variables
Class Variables (2 of 2)
Where Default Override
Analysis variable Excludes that observation from
the calculation of statistics
None
Class variable Excludes that observation from
the table
MISSING option
Missing Data
Includes
selected
class
variables
with
missing
data
Includes
all class
variable
s with
missing
data
 Create output datasets using the output statement
 out= specifies the name of the output dataset(s)
 By default, the output dataset will include N, Mean, Min, Max, and
Std. Dev – regardless of which statistics you specify in the PROC
Means statement – for all levels of your class variable(s)
Output Statement (1 of 7)
Lesson:
If an observation is missing data for a class
variable, that observation is excluded from all
analyses in the procedure
Output Statement (2 of 7)
 You can specify which statistics to include
through the output statement
Output Statement (3 of 7)
Statistic
New
variable
name
 Use the autoname function to automatically
generate new variable names
Output Statement (4 of 7)
 If you forget to name your variables, your output
will not run correctly
Output Statement (5 of 7)
 Can assign different statistics to each variable
Output Statement (6 of 7)
 Can have multiple output statements with
different specifications for each dataset
Output Statement (7 of 7)
 Some procedures (such as FREQ and MEANS)
will print a procedure title at the top of their output
o This cannot be controlled by title statements
ODS
 Use an ODS NOPROCTITLE statement to
turn off the procedure titles
ODS NOPROCTITLE
• Utilize SAS Procs for reporting
• Incorporate descriptive statistics in reports
• Effectively export charts and data
Summary - Learning Objectives
“This workforce solution was funded by a grant awarded by the U.S. Department of Labor’s
Employment and Training Administration. The solution was created by the grantee and does not
necessarily reflect the official position of the U.S. Department of Labor. The Department of Labor
makes no guarantees, warranties, or assurances of any kind, express or implied, with respect to such
information, including any information on linked sites and including, but not limited to, accuracy of the
information or its completeness, timeliness, usefulness, adequacy, continued availability, or ownership.”
Except where otherwise stated, this work by Wake Technical Community College Building Capacity in
Business Analytics, a Department of Labor, TAACCCT funded project, is licensed under the Creative
Commons Attribution 4.0 International License. To view a copy of this license, visit
http://creativecommons.org/licenses/by/4.0/
Copyright Information

More Related Content

What's hot (20)

Spss basics tutorial
Spss basics tutorialSpss basics tutorial
Spss basics tutorial
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Using SPSS for data analysis in linguistics
Using SPSS for data analysis in linguistics Using SPSS for data analysis in linguistics
Using SPSS for data analysis in linguistics
 
Paper Abstracts Matter... But How much?
Paper Abstracts Matter... But How much?Paper Abstracts Matter... But How much?
Paper Abstracts Matter... But How much?
 
Doe10 factorial2k blocking
Doe10 factorial2k blockingDoe10 factorial2k blocking
Doe10 factorial2k blocking
 
Doe15 factorialmixed
Doe15 factorialmixedDoe15 factorialmixed
Doe15 factorialmixed
 
Unit 4 editing and coding (2)
Unit 4 editing and coding (2)Unit 4 editing and coding (2)
Unit 4 editing and coding (2)
 
SQL Constraints
SQL ConstraintsSQL Constraints
SQL Constraints
 
Cis145 Final Review
Cis145 Final ReviewCis145 Final Review
Cis145 Final Review
 
Data entry in Excel and SPSS
Data entry in Excel and SPSS Data entry in Excel and SPSS
Data entry in Excel and SPSS
 
Excel Workshop
Excel WorkshopExcel Workshop
Excel Workshop
 
Capítulo 3
Capítulo 3Capítulo 3
Capítulo 3
 
An Introduction to SPSS
An Introduction to SPSSAn Introduction to SPSS
An Introduction to SPSS
 
Doe08 gen fact
Doe08 gen factDoe08 gen fact
Doe08 gen fact
 
Spss
SpssSpss
Spss
 
اىفناىنمفبانفيا
اىفناىنمفبانفيااىفناىنمفبانفيا
اىفناىنمفبانفيا
 
Ad09 Anytl
Ad09 AnytlAd09 Anytl
Ad09 Anytl
 
Introduction to spss 1
Introduction to spss 1Introduction to spss 1
Introduction to spss 1
 
Devry bis 155 week 1 quiz new
Devry bis 155 week 1 quiz newDevry bis 155 week 1 quiz new
Devry bis 155 week 1 quiz new
 
Doe05 lsd
Doe05 lsdDoe05 lsd
Doe05 lsd
 

Viewers also liked

Chap03 numerical descriptive measures
Chap03 numerical descriptive measuresChap03 numerical descriptive measures
Chap03 numerical descriptive measuresUni Azza Aunillah
 
Writing up your results – apa style guidelines
Writing up your results – apa style guidelinesWriting up your results – apa style guidelines
Writing up your results – apa style guidelinesMarialena Kostouli
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statisticsAiden Yeh
 
Descriptive Statistics
Descriptive StatisticsDescriptive Statistics
Descriptive Statisticsguest290abe
 
Reporting a multiple linear regression in apa
Reporting a multiple linear regression in apaReporting a multiple linear regression in apa
Reporting a multiple linear regression in apaKen Plummer
 
Reporting a single linear regression in apa
Reporting a single linear regression in apaReporting a single linear regression in apa
Reporting a single linear regression in apaKen Plummer
 

Viewers also liked (7)

Chap03 numerical descriptive measures
Chap03 numerical descriptive measuresChap03 numerical descriptive measures
Chap03 numerical descriptive measures
 
Descriptive statistics ii
Descriptive statistics iiDescriptive statistics ii
Descriptive statistics ii
 
Writing up your results – apa style guidelines
Writing up your results – apa style guidelinesWriting up your results – apa style guidelines
Writing up your results – apa style guidelines
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Descriptive Statistics
Descriptive StatisticsDescriptive Statistics
Descriptive Statistics
 
Reporting a multiple linear regression in apa
Reporting a multiple linear regression in apaReporting a multiple linear regression in apa
Reporting a multiple linear regression in apa
 
Reporting a single linear regression in apa
Reporting a single linear regression in apaReporting a single linear regression in apa
Reporting a single linear regression in apa
 

Similar to BAS 150 Lesson 7 Lecture

InnerSoft STATS - Analyze
InnerSoft STATS - AnalyzeInnerSoft STATS - Analyze
InnerSoft STATS - AnalyzeInnerSoft
 
Percentiles and Deciles
Percentiles and DecilesPercentiles and Deciles
Percentiles and DecilesMary Espinar
 
Ch. 4-demand-estimation(2)
Ch. 4-demand-estimation(2)Ch. 4-demand-estimation(2)
Ch. 4-demand-estimation(2)anj134u
 
Base SAS Statistics Procedures
Base SAS Statistics ProceduresBase SAS Statistics Procedures
Base SAS Statistics Proceduresguest2160992
 
Chap_05_Data_Collection_and_Analysis.ppt
Chap_05_Data_Collection_and_Analysis.pptChap_05_Data_Collection_and_Analysis.ppt
Chap_05_Data_Collection_and_Analysis.pptRosaHildaFlix
 
Week 2 Project - STAT 3001Student Name Type your name here.docx
Week 2 Project - STAT 3001Student Name Type your name here.docxWeek 2 Project - STAT 3001Student Name Type your name here.docx
Week 2 Project - STAT 3001Student Name Type your name here.docxcockekeshia
 
lecture 2 Centeral Tendency.pptx
lecture 2 Centeral Tendency.pptxlecture 2 Centeral Tendency.pptx
lecture 2 Centeral Tendency.pptxssuser378d7c
 
Topic 4 intro spss_stata 30032012 sy_srini
Topic 4 intro spss_stata 30032012 sy_sriniTopic 4 intro spss_stata 30032012 sy_srini
Topic 4 intro spss_stata 30032012 sy_sriniSM Lalon
 
Spss basic Dr Marwa Zalat
Spss basic Dr Marwa ZalatSpss basic Dr Marwa Zalat
Spss basic Dr Marwa ZalatMarwa Zalat
 
Microsoft Excel- basics
Microsoft Excel-  basicsMicrosoft Excel-  basics
Microsoft Excel- basicsjeshin jose
 
t-Test Project Instructions and Rubric Project Overvi.docx
t-Test Project Instructions and Rubric  Project Overvi.docxt-Test Project Instructions and Rubric  Project Overvi.docx
t-Test Project Instructions and Rubric Project Overvi.docxmattinsonjanel
 
Bis 345-final-exam-guide-set-1-new
Bis 345-final-exam-guide-set-1-newBis 345-final-exam-guide-set-1-new
Bis 345-final-exam-guide-set-1-newassignmentcloud85
 
Enhancing statistical report capabilities using the clin plus report engine
Enhancing statistical report capabilities using the clin plus report engineEnhancing statistical report capabilities using the clin plus report engine
Enhancing statistical report capabilities using the clin plus report engineClin Plus
 
2.1-2.2 Organizing Data
2.1-2.2 Organizing Data2.1-2.2 Organizing Data
2.1-2.2 Organizing Datamlong24
 
Introducción al Software Analítico SAS
Introducción al Software Analítico SASIntroducción al Software Analítico SAS
Introducción al Software Analítico SASJorge Rodríguez M.
 
SPSS User Guide
SPSS User GuideSPSS User Guide
SPSS User GuideBrian Bond
 

Similar to BAS 150 Lesson 7 Lecture (20)

InnerSoft STATS - Analyze
InnerSoft STATS - AnalyzeInnerSoft STATS - Analyze
InnerSoft STATS - Analyze
 
Percentiles and Deciles
Percentiles and DecilesPercentiles and Deciles
Percentiles and Deciles
 
SPSS FINAL.pdf
SPSS FINAL.pdfSPSS FINAL.pdf
SPSS FINAL.pdf
 
Ch. 4-demand-estimation(2)
Ch. 4-demand-estimation(2)Ch. 4-demand-estimation(2)
Ch. 4-demand-estimation(2)
 
Base SAS Statistics Procedures
Base SAS Statistics ProceduresBase SAS Statistics Procedures
Base SAS Statistics Procedures
 
Chap_05_Data_Collection_and_Analysis.ppt
Chap_05_Data_Collection_and_Analysis.pptChap_05_Data_Collection_and_Analysis.ppt
Chap_05_Data_Collection_and_Analysis.ppt
 
Uses of SPSS and Excel to analyze data
Uses of SPSS and Excel   to analyze dataUses of SPSS and Excel   to analyze data
Uses of SPSS and Excel to analyze data
 
Week 2 Project - STAT 3001Student Name Type your name here.docx
Week 2 Project - STAT 3001Student Name Type your name here.docxWeek 2 Project - STAT 3001Student Name Type your name here.docx
Week 2 Project - STAT 3001Student Name Type your name here.docx
 
lecture 2 Centeral Tendency.pptx
lecture 2 Centeral Tendency.pptxlecture 2 Centeral Tendency.pptx
lecture 2 Centeral Tendency.pptx
 
Topic 4 intro spss_stata 30032012 sy_srini
Topic 4 intro spss_stata 30032012 sy_sriniTopic 4 intro spss_stata 30032012 sy_srini
Topic 4 intro spss_stata 30032012 sy_srini
 
Analyzing survey data
Analyzing survey dataAnalyzing survey data
Analyzing survey data
 
Spss basic Dr Marwa Zalat
Spss basic Dr Marwa ZalatSpss basic Dr Marwa Zalat
Spss basic Dr Marwa Zalat
 
Microsoft Excel- basics
Microsoft Excel-  basicsMicrosoft Excel-  basics
Microsoft Excel- basics
 
t-Test Project Instructions and Rubric Project Overvi.docx
t-Test Project Instructions and Rubric  Project Overvi.docxt-Test Project Instructions and Rubric  Project Overvi.docx
t-Test Project Instructions and Rubric Project Overvi.docx
 
Bis 345-final-exam-guide-set-1-new
Bis 345-final-exam-guide-set-1-newBis 345-final-exam-guide-set-1-new
Bis 345-final-exam-guide-set-1-new
 
Enhancing statistical report capabilities using the clin plus report engine
Enhancing statistical report capabilities using the clin plus report engineEnhancing statistical report capabilities using the clin plus report engine
Enhancing statistical report capabilities using the clin plus report engine
 
2.1-2.2 Organizing Data
2.1-2.2 Organizing Data2.1-2.2 Organizing Data
2.1-2.2 Organizing Data
 
Statistics.ppt
Statistics.pptStatistics.ppt
Statistics.ppt
 
Introducción al Software Analítico SAS
Introducción al Software Analítico SASIntroducción al Software Analítico SAS
Introducción al Software Analítico SAS
 
SPSS User Guide
SPSS User GuideSPSS User Guide
SPSS User Guide
 

More from Wake Tech BAS

BAS 150 Lesson 8 Lecture
BAS 150 Lesson 8 LectureBAS 150 Lesson 8 Lecture
BAS 150 Lesson 8 LectureWake Tech BAS
 
BAS 150 Lesson 6 Lecture
BAS 150 Lesson 6 LectureBAS 150 Lesson 6 Lecture
BAS 150 Lesson 6 LectureWake Tech BAS
 
BAS 150 Lesson 5 Lecture
BAS 150 Lesson 5 LectureBAS 150 Lesson 5 Lecture
BAS 150 Lesson 5 LectureWake Tech BAS
 
BAS 150 Lesson 4 Lecture
BAS 150 Lesson 4 LectureBAS 150 Lesson 4 Lecture
BAS 150 Lesson 4 LectureWake Tech BAS
 
BAS 150 Lesson 3 Lecture
BAS 150 Lesson 3 LectureBAS 150 Lesson 3 Lecture
BAS 150 Lesson 3 LectureWake Tech BAS
 
BAS 150 Lesson 2 Lecture
BAS 150 Lesson 2 Lecture BAS 150 Lesson 2 Lecture
BAS 150 Lesson 2 Lecture Wake Tech BAS
 
BAS 150 Lesson 1 Lecture
BAS 150 Lesson 1 LectureBAS 150 Lesson 1 Lecture
BAS 150 Lesson 1 LectureWake Tech BAS
 

More from Wake Tech BAS (13)

BAS 250 Lecture 8
BAS 250 Lecture 8BAS 250 Lecture 8
BAS 250 Lecture 8
 
BAS 250 Lecture 5
BAS 250 Lecture 5BAS 250 Lecture 5
BAS 250 Lecture 5
 
BAS 250 Lecture 4
BAS 250 Lecture 4BAS 250 Lecture 4
BAS 250 Lecture 4
 
BAS 250 Lecture 3
BAS 250 Lecture 3BAS 250 Lecture 3
BAS 250 Lecture 3
 
BAS 250 Lecture 2
BAS 250 Lecture 2BAS 250 Lecture 2
BAS 250 Lecture 2
 
BAS 250 Lecture 1
BAS 250 Lecture 1BAS 250 Lecture 1
BAS 250 Lecture 1
 
BAS 150 Lesson 8 Lecture
BAS 150 Lesson 8 LectureBAS 150 Lesson 8 Lecture
BAS 150 Lesson 8 Lecture
 
BAS 150 Lesson 6 Lecture
BAS 150 Lesson 6 LectureBAS 150 Lesson 6 Lecture
BAS 150 Lesson 6 Lecture
 
BAS 150 Lesson 5 Lecture
BAS 150 Lesson 5 LectureBAS 150 Lesson 5 Lecture
BAS 150 Lesson 5 Lecture
 
BAS 150 Lesson 4 Lecture
BAS 150 Lesson 4 LectureBAS 150 Lesson 4 Lecture
BAS 150 Lesson 4 Lecture
 
BAS 150 Lesson 3 Lecture
BAS 150 Lesson 3 LectureBAS 150 Lesson 3 Lecture
BAS 150 Lesson 3 Lecture
 
BAS 150 Lesson 2 Lecture
BAS 150 Lesson 2 Lecture BAS 150 Lesson 2 Lecture
BAS 150 Lesson 2 Lecture
 
BAS 150 Lesson 1 Lecture
BAS 150 Lesson 1 LectureBAS 150 Lesson 1 Lecture
BAS 150 Lesson 1 Lecture
 

Recently uploaded

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 

Recently uploaded (20)

Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 

BAS 150 Lesson 7 Lecture

  • 1. BAS 150 Lesson 7: SAS Reporting Procs and Descriptive Statistics
  • 2. • Utilize SAS Procs for reporting • Incorporate descriptive statistics in reports • Effectively export charts and data This Lesson’s Learning Objectives
  • 3.  PROC Freq o Options o Using formats o Missing data o Order= o Multi-dimensional tables o Statistics Topics (1 of 2)
  • 4.  PROC Means o Options o Class statement o Missing data o Output statement o _TYPE_ and Chartype  ODS NOPROCTITLE Topics (2 of 2)
  • 5.  PROC Freq can be used to run simple frequency tables on your data PROC Freq (1 of 4)
  • 6. PROC Freq (2 of 4) Results of PROC Freq of “Demographics”
  • 7.  Use the table statement to only print selected variables  Use the nocum option to suppress cumulative statistics  Use the nopercent option to suppress percent statistics  Can use options together or separately PROC Freq (3 of 4)
  • 8.  where statement – Only include selected observations  format statement – Apply format to selected variables o Only applies to current procedure o Can be used to group data PROC Freq (4 of 4)
  • 9.  Use formats to group data Using Formats
  • 10.  Missing data will be excluded from the analysis  Will affect percent calculations Missing Data (1 of 2)
  • 11.  Use the missing option to include missing values in the frequency table  Can also create a label for missing values in your PROC Format Missing Data (2 of 2)
  • 12.  By default PROC Freq orders your frequency table based on the internal (unformatted) values  Use the order= option to change the order o internal: (Default) Order values by their internal (unformatted) values o formatted: Order values by their formatted values o freq: Order values from the most to least frequent o data: Order values based on their order in the input dataset  Missing values, if included in the table, will always be listed first regardless Order= (1 of 2)
  • 14.  Can create simple cross-tabulations Multi-Dimension Tables (1 of 4)
  • 15.  Use the nocol option to suppress column percent statistics  Use the norow option to suppress row percent statistics  Use the nopercent option to suppress total percent statistics  Can use options together or separately Multi-Dimension Tables (2 of 4)
  • 16.  Use the list option to display cross-tab tables in a list format Multi-Dimension Tables (3 of 4)
  • 17. There are multiple ways to request tables: Multi-Dimension Tables (4 of 4) Notation Result table A * (B C D); Three tables: A by B; A by C; A by D table (A B) * (C D); Four tables: A by C; A by D; B by C; B by D table A * B * C; One three-way table with the format Page * Row * Column. Each classification of A would appear on a separate page. table Ques1 - Ques10; Ten tables, one each for Ques1 through Ques10 table VarA -- VarB; One table each for all variables between VarA and VarB in the SAS dataset (by varnum) table Ques: ; One table each for all variables that begin with “Ques” table _numeric_; One table each for all numeric variables table _character_; One table each for all character variables table _all_; One table each for all variables
  • 18.  PROC Freq is also used to calculate certain statistics, such as chi-square, odds ratio, and relative risk Statistics
  • 19.  PROC Means can be used to run simple summary statistics on your data PROC Means (1 of 5)
  • 20. Results of PROC Means of “Demographics” PROC Means (2 of 5)
  • 21.  Many options to control output of PROC Means o NMiss Mean Median – Examples of statistics that can be specified in PROC Means  (see later slide for list of statistical keywords) o class statement – Allows for grouping by categorical variables o var statement – Only provides statistics for listed analysis variables PROC Means (3 of 5)
  • 22. Statistics available in PROC Means PROC Means (4 of 5)
  • 23.  maxdec= option – Specifies the number of decimal places for statistics  where statement – Only include selected observations  format statement – Apply format to selected variables o Only applies to current procedure o Can be used to group class data PROC Means (5 of 5)
  • 24. Table can also include multiple class variables Class Variables (1 of 2)
  • 25. Table can also include multiple class variables Class Variables (2 of 2)
  • 26. Where Default Override Analysis variable Excludes that observation from the calculation of statistics None Class variable Excludes that observation from the table MISSING option Missing Data Includes selected class variables with missing data Includes all class variable s with missing data
  • 27.  Create output datasets using the output statement  out= specifies the name of the output dataset(s)  By default, the output dataset will include N, Mean, Min, Max, and Std. Dev – regardless of which statistics you specify in the PROC Means statement – for all levels of your class variable(s) Output Statement (1 of 7)
  • 28. Lesson: If an observation is missing data for a class variable, that observation is excluded from all analyses in the procedure Output Statement (2 of 7)
  • 29.  You can specify which statistics to include through the output statement Output Statement (3 of 7) Statistic New variable name
  • 30.  Use the autoname function to automatically generate new variable names Output Statement (4 of 7)
  • 31.  If you forget to name your variables, your output will not run correctly Output Statement (5 of 7)
  • 32.  Can assign different statistics to each variable Output Statement (6 of 7)
  • 33.  Can have multiple output statements with different specifications for each dataset Output Statement (7 of 7)
  • 34.  Some procedures (such as FREQ and MEANS) will print a procedure title at the top of their output o This cannot be controlled by title statements ODS
  • 35.  Use an ODS NOPROCTITLE statement to turn off the procedure titles ODS NOPROCTITLE
  • 36. • Utilize SAS Procs for reporting • Incorporate descriptive statistics in reports • Effectively export charts and data Summary - Learning Objectives
  • 37. “This workforce solution was funded by a grant awarded by the U.S. Department of Labor’s Employment and Training Administration. The solution was created by the grantee and does not necessarily reflect the official position of the U.S. Department of Labor. The Department of Labor makes no guarantees, warranties, or assurances of any kind, express or implied, with respect to such information, including any information on linked sites and including, but not limited to, accuracy of the information or its completeness, timeliness, usefulness, adequacy, continued availability, or ownership.” Except where otherwise stated, this work by Wake Technical Community College Building Capacity in Business Analytics, a Department of Labor, TAACCCT funded project, is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ Copyright Information