Posts Tagged ‘ data analysis ’

Finding observations that match a target value

March 18, 2015
By

Imagine that you have one million rows of numerical data and you want to determine if a particular "target" value occurs. How might you find where the value occurs? For univariate data, this is an easy problem. In the SAS DATA step you can use a WHERE clause or a

Tags: , ,
Posted in SAS | Comments Off

Analyzing the first 10 million digits of pi: Randomness within structure

March 12, 2015
By

Saturday, March 14, 2015, is Pi Day, and this year is a super-special Pi Day! This is your once-in-a-lifetime chance to celebrate the first 10 digits of pi (π) by doing something special on 3/14/15 at 9:26:53. Apologies to my European friends, but Pi Day requires that you represent dates

Tags: , ,
Posted in SAS | Comments Off

Aborting a SAS/IML program upon encountering an error

March 3, 2014
By

A colleague sent me an interesting question: What is the best way to abort a SAS/IML program? For example, you might want to abort a program if the data is singular or does not contain a sufficient number of observations or variables. As a first attempt would be to try

Tags: , ,
Posted in SAS | Comments Off

How to automatically select a smooth curve for a scatter plot in SAS

February 26, 2014
By

My last blog post described three ways to add a smoothing spline to a scatter plot in SAS. I ended the post with a cautionary note: From a statistical point of view, the smoothing spline is less than ideal because the smoothing parameter must be chosen manually by the user.

Tags: , ,
Posted in SAS | Comments Off

How to specify mosaic plot colors in SAS

November 6, 2013
By

The mosaic plot is a graphical visualization of a frequency table. In a previous post, I showed how to use the FREQ procedure to create a mosaic plot. This article shows how to create a mosaic plot by using the MOSAICPARM statement in the graph template language (GTL). (The MOSAICPARM

Tags: , , , ,
Posted in SAS | Comments Off

Create mosaic plots in SAS by using PROC FREQ

November 4, 2013
By

Mosaic plots (Hartigan and Kleiner, 1981; Friendly, 1994, JASA) are used for exploratory data analysis of categorical data. Mosaic plots have been available for decades in SAS products such as JMP, SAS/INSIGHT, and SAS/IML Studio. However, not all SAS customers have access to these specialized products, so I am pleased

Tags: , , , ,
Posted in SAS | Comments Off

Dryer balls and drying time: A statistical analysis

August 14, 2013
By

Earlier this week I posted a "guest blog" in which my 8th grade son described a visualization of data for the 2013 ASA Poster Competition. The purpose of today's blog post is to present a higher-level statistical analysis of the same data. I will use a t test and a

Tags: ,
Posted in SAS | Comments Off

Do dryer balls reduce drying time?

August 12, 2013
By

Editor's Note: My 8th grade son, David, created a poster that he submitted to the 2013 ASA Poster Competition. The competition encourages students to display "two or more related graphics that summarize a set of data, look at the data from different points of view, and answer specific questions about

Tags: , ,
Posted in SAS | Comments Off