Those tricky PERCENT formats

August 10, 2015
By
Those tricky PERCENT formats

When using SAS to format a number as a percentage, there is a little trick that you need to remember: the width of the formatted value must include room for the decimal point, the percent sign, and the possibility of two parentheses that indicate negative values. The field width must

The post Read more »

Do You KISS Your Line Charts?

August 5, 2015
By

Probably you have heard the Keep It Simple Sweetie (KISS) principle stated hundreds of times – mainly because it is true. Keep your message simple and straightforward by removing any unnecessary visual clutter. Your job is to direct the viewer’s attention to what is important about the message. Nothing could be more true with...
Read more »

Regression coefficient plots in SAS

August 5, 2015
By
Regression coefficient plots in SAS

Last week's post about odds ratio plots in SAS made me think about a similar plot that visualizes the parameter estimates for a regression analysis. The so-called regression coefficient plot is a scatter plot of the estimates for each effect in the model, with lines that indicate the width of

The post Read more »

Marriage and divorce in the US: What do the numbers say?

August 4, 2015
By

I've heard lots of people quote statistics about marriage & divorce, but the experts don't always agree on what the data means. So I decided to run the data through a SAS graphical analysis, and see what the numbers say ... Before we get into the numbers though, let's have a

The post Read more »

Unix Command-Line Top 10

August 4, 2015
By

If you are introduced to command-line Unix (or Linux or any other Posix-compliant variant) after a lifetime of Windows, it can be a daunting experience. To those thrust into this position, I always offer my top "ten" most useful commands to begin getti...
Read more »

Using Lua within your SAS programs

August 3, 2015
By

With apologies to this candy advertisement from the 1980s: "Hey, you got your Lua in my SAS program." "You got your SAS code in my Lua program!" Announcer: "PROC LUA: Two great programming languages that program great together!" What is Lua? It's an embeddable scripting language that is often used

The post Read more »

Creating a better graph to show trade deficit

August 3, 2015
By

I recently saw a cool graph showing the US import/export trade deficit. But after studying it a bit, I realized I was perceiving it wrong. Follow along in this blog, to find out what the problem was, and how I redesigned the graph to avoid it. I was looking through dadaviz.com

The post Read more »

Where did it come from? Adding the source of each observation to a SAS data set

August 3, 2015
By
Where did it come from? Adding the source of each observation to a SAS data set

Imagine the following scenario. You have many data sets from various sources, such as individual stores or hospitals. You use the SAS DATA step to concatenate the many data sets into a single large data set. You give the big data set to a colleague who will analyze it. Later

The post Read more »

Map of US domestic cannabis eradication

July 31, 2015
By

In my quest for interesting data to graph, I found some Drug Enforcement Administration (DEA) data on US domestic cannabis eradication. Does the data say anything interesting? Read on to find out! ... While doing some searches for other data, I happened across a table on the DEA website titled

The post Read more »

Proc-x is looking for 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

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.

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.