Posts Tagged ‘ Statistical Graphics ’

Merged legends: Overlay a symbol and line in a legend item

February 12, 2018
By
Merged legends: Overlay a symbol and line in a legend item

Did you know that SAS can combine or "merge" a symbol and a line pattern into a single legend item, as shown below? This kind of legend is useful when you are overlaying a group of curves onto a scatter plot. It enables the reader to quickly associate values of

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Merged legends: Overlay a symbol and line in a legend item

Create a stacked band plot in SAS

January 31, 2018
By
Create a stacked band plot in SAS

This article shows how to construct a "stacked band plot" in SAS, as shown to the right. (Click to enlarge.) You are probably familiar with a stacked bar chart in which the cumulative amount of some quantity is displayed by stacking the contributions of several groups. A canonical example is

The post Read more »

Tags: ,
Posted in SAS | Comments Off on Create a stacked band plot in SAS

How much does it cost to give birth in the US?

January 17, 2018
By
How much does it cost to give birth in the US?

Money magazine (Jan/Feb 2018) contains an article about how much it costs to give birth in the US. The costs, which are based on insurance data, include prenatal care and hospital delivery but exclude infant care. The data are compiled for each state (including Washington, DC) and by type of

The post Read more »

Tags: ,
Posted in SAS | Comments Off on How much does it cost to give birth in the US?

10 posts from 2017 that deserve a second look

January 10, 2018
By
10 posts from 2017 that deserve a second look

Last week I wrote about the 10 most popular articles from The DO Loop in 2017. My most popular articles tend to be about elementary statistics or SAS programming tips. Less popular are the articles about advanced statistical and programming techniques. However, these technical articles fill an important niche. Not

The post Read more »

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

Label multiple regression lines in SAS

January 8, 2018
By
Label multiple regression lines in SAS

A SAS programmer asked how to label multiple regression lines that are overlaid on a single scatter plot. Specifically, he asked to label the curves that are produced by using the REG statement with the GROUP= option in PROC SGPLOT. He wanted the labels to be the slope and intercept

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on Label multiple regression lines in SAS

How to create a sliced fit plot in SAS

December 20, 2017
By
How to create a sliced fit plot in SAS

I previously showed an easy way to visualize a regression model that has several continuous explanatory variables: use the SLICEFIT option in the EFFECTPLOT statement in SAS to create a sliced fit plot. The EFFECTPLOT statement is directly supported by the syntax of the GENMOD, LOGISTIC, and ORTHOREG procedures in

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on How to create a sliced fit plot in SAS

Visualize patterns of missing values

November 29, 2017
By
Visualize patterns of missing values

Missing values present challenges for the statistical analyst and data scientist. Many modeling techniques (such as regression) exclude observations that contain missing values, which can reduce the sample size and reduce the power of a statistical analysis. Before you try to deal with missing values in an analysis (for example,

The post Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Visualize patterns of missing values

A SAS programming technique to modify ODS templates

October 30, 2017
By
A SAS programming technique to modify ODS templates

This article demonstrates a SAS programming technique that I call Kuhfeld's template modification technique. The technique enables you to dynamically modify an ODS template and immediately call the modified template to produce a new graph or table. By following the five steps in this article, you can implement the technique

The post Read more »

Tags: , ,
Posted in SAS | Comments Off on A SAS programming technique to modify ODS templates

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.

Sponsors







Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.