DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

The software you build is only as secure as the code that powers it. Learn how malicious code creeps into your software supply chain.

Apache Cassandra combines the benefits of major NoSQL databases to support data management needs not covered by traditional RDBMS vendors.

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workloads.

Related

  • Financial Data Engineering in SAS
  • SAS: Telling a Story With Data

Trending

  • The Full-Stack Developer's Blind Spot: Why Data Cleansing Shouldn't Be an Afterthought
  • Metrics at a Glance for Production Clusters
  • Data Quality: A Novel Perspective for 2025
  • A Deep Dive Into Firmware Over the Air for IoT Devices
  1. DZone
  2. Coding
  3. Languages
  4. Descriptive Analysis With SAS

Descriptive Analysis With SAS

Different descriptive analysis techniques with SAS include PROC MEANS, PROC ANOVA, PROC FREQ, PROC UNIVARIATE, and PROC CORR.

By 
Jitendra Bafna user avatar
Jitendra Bafna
DZone Core CORE ·
Updated Mar. 17, 17 · Opinion
Likes (4)
Comment
Save
Tweet
Share
21.4K Views

Join the DZone community and get the full member experience.

Join For Free

PROC MEANS is one of the most common SAS procedures used for analyzing data. It is used to calculate descriptive statistics like the number of observations (N), mean, standard deviation, and max and min value.

proc means data = libref.ecommerce ;
run;

This code will compute descriptive statistics for all the numeric variables in the dataset.

Image title

proc means data = libref.ecommerce ;
var Sales Profit;
run;

This code will compute descriptive statistics for two variables: Sales and Profit.

Image title

proc means data = libref.ecommerce ;
var Sales Profit;
class Ship_mode;
run;

It will also be grouped by Ship_mode.

Image title

proc means data = libref.ecommerce Mean Median Mode P25 P50 P75;
var Sales Profit;
run;

By default, proc means will give you the number of observations (N), mean, standard deviation, and max and min value. If you want to compute the median percentiles, use the above code.

Image title

PROC ANOVA stands for Analysis of Variance. In the analysis of variance, a continuous response variable known as a dependent variable is measured under experimental conditions identified by classification variables known as independent variables.

Proc anova data=Libref.College;
Title 'Anova Analysis';
Class GRAD_PER;
Model Admission_YN = GRAD_PER;
Run;

Image title

Image title

PROC FREQ prints all values of a given categorical variable in the Output window, along with the number and percentage of times each value appears. It can be used for both numeric as well as character variables.

proc freq data=libref.ecommerce;
tables order_priority;
run;

This code will calculate the number and percentage of time each value appears for the order_priority variable.

Image title

PROC UNIVARIATE computes descriptive statistics based on moments (including skewness and kurtosis), quartiles or percentiles (such as the median), frequency tables, and extreme values. It also provides statements for creating hostograms.

proc univariate data = libref.ecommerce;
var sales;
histogram sales/normal;
run;

Image title

Image title

Image titlePROC CORR computes Pearson correlation coefficients, three nonparametric measures of association, polyserial correlation coefficients, and the probabilities associated with these statistics.

proc reg data = libref.ecommerce;
model sales=quantity;
run;

Image title


Image title

Now, you know different descriptive analysis techniques with SAS.

SAS (software)

Opinions expressed by DZone contributors are their own.

Related

  • Financial Data Engineering in SAS
  • SAS: Telling a Story With Data

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!