SlideShare a Scribd company logo
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

Spss basics tutorial
Spss basics tutorialSpss basics tutorial
Spss basics tutorial
Jack Rabah
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
Konpal Darakshan
 
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
Ezzeldin M. T. Ali
 
Paper Abstracts Matter... But How much?
Paper Abstracts Matter... But How much?Paper Abstracts Matter... But How much?
Paper Abstracts Matter... But How much?
Cynthia Alexander Rascon
 
Doe10 factorial2k blocking
Doe10 factorial2k blockingDoe10 factorial2k blocking
Doe10 factorial2k blocking
Arif Rahman
 
Doe15 factorialmixed
Doe15 factorialmixedDoe15 factorialmixed
Doe15 factorialmixed
Arif Rahman
 
Unit 4 editing and coding (2)
Unit 4 editing and coding (2)Unit 4 editing and coding (2)
Unit 4 editing and coding (2)
kalailakshmi
 
Data entry in Excel and SPSS
Data entry in Excel and SPSS Data entry in Excel and SPSS
Data entry in Excel and SPSS
Dhritiman Chakrabarti
 
Excel Workshop
Excel WorkshopExcel Workshop
Excel WorkshopNhi Tran
 
Capítulo 3
Capítulo 3Capítulo 3
Capítulo 3
Hanyel Acuna
 
An Introduction to SPSS
An Introduction to SPSSAn Introduction to SPSS
An Introduction to SPSS
Rajesh Gunesh
 
Doe08 gen fact
Doe08 gen factDoe08 gen fact
Doe08 gen fact
Arif Rahman
 
اىفناىنمفبانفيا
اىفناىنمفبانفيااىفناىنمفبانفيا
اىفناىنمفبانفياBisan Rjoub
 
Ad09 Anytl
Ad09 AnytlAd09 Anytl
Ad09 Anytl
snail_chen
 
Introduction to spss 1
Introduction to spss 1Introduction to spss 1
Introduction to spss 1
Michael Taiwo
 
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
uopassignment
 
Doe05 lsd
Doe05 lsdDoe05 lsd
Doe05 lsd
Arif Rahman
 

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 measures
Uni Azza Aunillah
 
Descriptive statistics ii
Descriptive statistics iiDescriptive statistics ii
Descriptive statistics ii
Mohammad Ihmeidan
 
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 Statistics
guest290abe
 
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
Ken 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 apa
Ken 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 - Analyze
InnerSoft
 
Percentiles and Deciles
Percentiles and DecilesPercentiles and Deciles
Percentiles and Deciles
Mary Espinar
 
SPSS FINAL.pdf
SPSS FINAL.pdfSPSS FINAL.pdf
SPSS FINAL.pdf
Thanavathi C
 
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 Procedures
guest2160992
 
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
RosaHildaFlix
 
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
Kudrat-E- Khoda(Prince)
 
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
cockekeshia
 
lecture 2 Centeral Tendency.pptx
lecture 2 Centeral Tendency.pptxlecture 2 Centeral Tendency.pptx
lecture 2 Centeral Tendency.pptx
ssuser378d7c
 
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
 
Analyzing survey data
Analyzing survey dataAnalyzing survey data
Analyzing survey data
Fatima Sultana
 
Spss basic Dr Marwa Zalat
Spss basic Dr Marwa ZalatSpss basic Dr Marwa Zalat
Spss basic Dr Marwa Zalat
Marwa Zalat
 
Microsoft Excel- basics
Microsoft Excel-  basicsMicrosoft Excel-  basics
Microsoft Excel- basics
jeshin 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.docx
mattinsonjanel
 
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
assignmentcloud85
 
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
Clin Plus
 
2.1-2.2 Organizing Data
2.1-2.2 Organizing Data2.1-2.2 Organizing Data
2.1-2.2 Organizing Data
mlong24
 
Statistics.ppt
Statistics.pptStatistics.ppt
Statistics.ppt
zafariqbal989542
 
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
Jorge 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 250 Lecture 8
BAS 250 Lecture 8BAS 250 Lecture 8
BAS 250 Lecture 8
Wake Tech BAS
 
BAS 250 Lecture 5
BAS 250 Lecture 5BAS 250 Lecture 5
BAS 250 Lecture 5
Wake Tech BAS
 
BAS 250 Lecture 4
BAS 250 Lecture 4BAS 250 Lecture 4
BAS 250 Lecture 4
Wake Tech BAS
 
BAS 250 Lecture 3
BAS 250 Lecture 3BAS 250 Lecture 3
BAS 250 Lecture 3
Wake Tech BAS
 
BAS 250 Lecture 2
BAS 250 Lecture 2BAS 250 Lecture 2
BAS 250 Lecture 2
Wake Tech BAS
 
BAS 250 Lecture 1
BAS 250 Lecture 1BAS 250 Lecture 1
BAS 250 Lecture 1
Wake Tech BAS
 
BAS 150 Lesson 8 Lecture
BAS 150 Lesson 8 LectureBAS 150 Lesson 8 Lecture
BAS 150 Lesson 8 Lecture
Wake Tech BAS
 
BAS 150 Lesson 6 Lecture
BAS 150 Lesson 6 LectureBAS 150 Lesson 6 Lecture
BAS 150 Lesson 6 Lecture
Wake Tech BAS
 
BAS 150 Lesson 5 Lecture
BAS 150 Lesson 5 LectureBAS 150 Lesson 5 Lecture
BAS 150 Lesson 5 Lecture
Wake Tech BAS
 
BAS 150 Lesson 4 Lecture
BAS 150 Lesson 4 LectureBAS 150 Lesson 4 Lecture
BAS 150 Lesson 4 Lecture
Wake Tech BAS
 
BAS 150 Lesson 3 Lecture
BAS 150 Lesson 3 LectureBAS 150 Lesson 3 Lecture
BAS 150 Lesson 3 Lecture
Wake 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 Lecture
Wake 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

Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 

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