SAS

Blogs on the SAS software

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 Where did it come from? Adding the source of each observation to a SAS data set appeared…

Read more »

Large matrices in SAS/IML 14.1

July 31, 2015
By
Large matrices in SAS/IML 14.1

Last week, SAS released the 14.1 version of its analytics products, which are shipped as part of the third maintenance release of 9.4. If you run SAS/IML programs from a 64-bit Windows PC, you might be interested to know that you can now create matrices with about 231 ≈ 2 […] The post Large matrices in SAS/IML 14.1 appeared first on The DO Loop.

Read more »

Odds ratio plots with a logarithmic scale in SAS

July 29, 2015
By
Odds ratio plots with a logarithmic scale in SAS

I recently read an argument by Andrew Wheeler for using a logarithmic axis for plotting odds ratios. I found his argument convincing. Accordingly, this blog post shows how to create an odds ratio plot in SAS where the ratio axis is displayed on a log scale. Thanks to Bob Derr […] The post Odds ratio plots with a logarithmic scale in SAS appeared first on The DO Loop.

Read more »

Convert a vector to a string

July 27, 2015
By
Convert a vector to a string

Base SAS contains many functions for processing strings, and you can call these functions from within a SAS/IML program. However, sometimes a SAS/IML programmer needs to process a vector of strings. No problem! You can call most Base SAS functions with a vector of parameters. I have previously written about […] The post Convert a vector to a string appeared first on The DO Loop.

Read more »

Wealth and winning in NC high school athletics

July 26, 2015
By
Wealth and winning in NC high school athletics

The Raleigh News & Observer published a front-page article about the effect of wealth and poverty on high school athletics in North Carolina. In particular, the article concluded that "high schools with a high percentage of poor students rarely win titles in the so-called country club sports—tennis, golf and swimming—and […] The post Wealth and winning in NC high school athletics appeared first on The DO Loop.

Read more »

The relationship between toothlessness and income

July 24, 2015
By
The relationship between toothlessness and income

My colleague Robert Allison finds the most interesting data sets to visualize! Yesterday he posted a visualization of toothless seniors in the US. More precisely, he created graphs that show the estimated prevalence of adults (65 years or older) who have had all their natural teeth extracted. The dental profession […] The post The relationship between toothlessness and income appeared first on The DO Loop.

Read more »

A new method to simulate the triangular distribution

July 22, 2015
By
A new method to simulate the triangular distribution

The triangular distribution has applications in risk analysis and reliability analysis. It is also a useful theoretical tool because of its simplicity. Its density function is piecewise linear. The standardized distribution is defined on [0,1] and has one parameter, 0 ≤ c ≤ 1, which determines the peak of the […] The post A new method to simulate the triangular distribution appeared first on The DO Loop.

Read more »

Create a density curve with shaded tails

July 20, 2015
By
Create a density curve with shaded tails

A SAS programmer wanted to plot the normal distribution and highlight the area under curve that corresponds to the tails of the distribution. For example, the following plot shows the lower decile shaded in blue and the upper decile shaded in red. An easy way to do this in SAS […] The post Create a density curve with shaded tails appeared first on The DO Loop.

Read more »

Visualizing the distribution of ACT scores

July 17, 2015
By
Visualizing the distribution of ACT scores

My son is in high school and plans to take the ACT, a standardized test to assess college aptitude and readiness. My wife asked, "What is a good score for the ACT?" I didn't know, but I did a quick internet search and discovered a tabulation of scores for the […] The post Visualizing the distribution of ACT scores appeared first on The DO Loop.

Read more »

How to Winsorize data in SAS

July 15, 2015
By
How to Winsorize data in SAS

Recently a SAS customer asked how to Winsorize data in SAS. Winsorization is best known as a way to construct robust univariate statistics. The Winsorized mean is a robust estimate of location. The Winsorized mean is similar to the trimmed mean, and both are described in the documentation for PROC […] The post How to Winsorize data in SAS appeared first on The DO Loop.

Read more »


Subscribe

Email:

  Subscribe