Posts Tagged ‘ Statistical Graphics ’

Visualizing US commute times and congestion

September 10, 2012
By

Robert Allison posted a map that shows the average commute times for major US cities, along with the proportion of the commute that is attributed to traffic jams and other congestion. The data are from a CEOs for Cities report (Driven Apart, 2010, p. 45). Robert use SAS/GRAPH software to
Read more »

Tags: , ,
Posted in SAS | Comments Off on Visualizing US commute times and congestion

What is the difference between categories and groups in PROC SGPLOT?

August 22, 2012
By

The other day I was using PROC SGPLOT to create a box plot and I ran a program that was similar to the following: proc sgplot data=sashelp.cars; title "Box Plot: Category = Origin"; vbox Horsepower / category=origin; run; An hour or so later I had a need for another box
Read more »

Tags: , ,
Posted in SAS | Comments Off on What is the difference between categories and groups in PROC SGPLOT?

Change a plot title by using the ODS Graphics Editor

August 6, 2012
By

A comment to last week's article on "How to get data values out of ODS graphics" indicated that the technique would be useful for changing the title on an ODS graph "without messing around with GTL." You can certainly use the technique for that purpose, but if you want to
Read more »

Tags: , ,
Posted in SAS | Comments Off on Change a plot title by using the ODS Graphics Editor

How to get data values out of ODS graphics

August 1, 2012
By

Many SAS procedures can produce ODS statistical graphics as naturally as they produce tables. Did you know that it is possible to obtain the numbers underlying an ODS statistical graph? This post shows how. Suppose that a SAS procedure creates a graph that displays a curve and that you want
Read more »

Tags: , , ,
Posted in SAS | Comments Off on How to get data values out of ODS graphics

Visualize the bivariate normal cumulative distribution

July 11, 2012
By

When you are working with probability distributions (normal, Poisson, exponential, and so forth), there are four essential functions that a statistical programmer needs. As I've written before, for common univariate distributions, SAS provides the following functions: the PDF function, which returns the probability density at a given point the CDF
Read more »

Tags: , , ,
Posted in SAS | Comments Off on Visualize the bivariate normal cumulative distribution

Compute the multivariate normal denstity in SAS

July 5, 2012
By

I've been working on a new book about Simulating Data with SAS. In researching the chapter on simulation of multivariate data, I've noticed that the probability density function (PDF) of multivariate distributions is often specified in a matrix form. Consequently, the multivariate density can usually be computed by using the
Read more »

Tags: , , ,
Posted in SAS | Comments Off on Compute the multivariate normal denstity in SAS

Create a contour plot in SAS

July 2, 2012
By

When I need to graph a function of two variables, I often choose to use a contour plot. A surface plot is probably easier for many people to understand, but it has several disadvantages when compared to a contour plot. For example, the following statements in SAS/IML Studio displays a
Read more »

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

The Poissonness plot: A goodness-of-fit diagnostic

April 12, 2012
By

Last week I discussed how to fit a Poisson distribution to data. The technique, which involves using the GENMOD procedure, produces a table of some goodness-of-fit statistics, but I find it useful to also produce a graph that indicates the goodness of fit. For continuous distributions, the quantile-quantile (Q-Q) plot
Read more »

Tags: , , ,
Posted in SAS | Comments Off on The Poissonness plot: A goodness-of-fit diagnostic

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.