Posts Tagged ‘ Statistical Graphics ’

Truncate response surfaces

March 20, 2019
By

An analyst was using SAS to analyze some data from an experiment. He noticed that the response variable is always positive (such as volume, size, or weight), but his statistical model predicts some negative responses. He posted the data and asked if it is possible to modify the graph so

Tags: , ,
Posted in SAS | Comments Off on Truncate response surfaces

Use PROC BOXPLOT to display hundreds of box plots

March 6, 2019
By

A previous article shows how to use a scatter plot to visualize the average SAT scores for all high schools in North Carolina. The schools are grouped by school districts and ranked according to the median value of the schools in the district. For the school districts that have many

Tags: , ,
Posted in SAS | Comments Off on Use PROC BOXPLOT to display hundreds of box plots

Visualize SAT scores in North Carolina

March 4, 2019
By

Standardized tests like the SAT and ACT can cause stress for both high school students and their parents, but according to a Wall Street Journal article, the SAT and ACT "provide an invaluable measure of how students are likely to perform in college and beyond." Naturally, students wonder how their

Tags: , ,
Posted in SAS | Comments Off on Visualize SAT scores in North Carolina

3 ways to create nested box plots in SAS

February 27, 2019
By

Box plots are a great way to compare the distributions of several subpopulations of your data. For example, box plots are often used in clinical studies to visualize the response of patients in various cohorts. This article describes three techniques to visualize responses when the cohorts have a nested or

Tags: , ,
Posted in SAS | Comments Off on 3 ways to create nested box plots in SAS

How to align the Y and Y2 axes in PROC SGPLOT

January 14, 2019
By

When you overlay two series in PROC SGPLOT, you can either plot both series on the same axis or you can assign one series to the main axis (Y) and another to a secondary axis (Y2). If you use the Y and Y2 axes, they are scaled independently by default,

Tags: , ,
Posted in SAS | Comments Off on How to align the Y and Y2 axes in PROC SGPLOT

10 posts from 2018 that deserve a second look

January 9, 2019
By

Numbers don't lie, but sometimes they don't reveal the full story. Last week I wrote about the most popular articles from The DO Loop in 2018. The popular articles are inevitably about elementary topics in SAS programming or statistics because those topics have broad appeal. However, I also write about

Tags: , , , ,
Posted in SAS | Comments Off on 10 posts from 2018 that deserve a second look

Top posts from The DO Loop in 2018

January 2, 2019
By

Last year, I wrote more than 100 posts for The DO Loop blog. Of these, the most popular articles were about data visualization, SAS programming tips, and statistical data analysis. Here are the most popular articles from 2018 in each category. Data Visualization Visualize repetition in song lyrics: In one

Tags: , , , ,
Posted in SAS | Comments Off on Top posts from The DO Loop in 2018

Visualize a mixed model that has repeated measures or random coefficients

December 19, 2018
By

I regularly see questions on a SAS discussion forum about how to visualize the predicted values for a mixed model that has at least one continuous variable, a categorical variable, and possibly an interaction term. SAS procedures such as GLM, GENMOD, and LOGISTIC can automatically produce plots of the predicted

Tags: , ,
Posted in SAS | Comments Off on Visualize a mixed model that has repeated measures or random coefficients

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.