Blog Archives

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 »

Compare the performance of algorithms in SAS

July 13, 2015
By
Compare the performance of algorithms in SAS

As my colleague Margaret Crevar recently wrote, it is useful to know how long SAS programs take to run. Margaret and others have written about how to use the SAS FULLSTIMER option to monitor the performance of the SAS system. In fact, SAS distributes a macro that enables you to […] The post Compare the performance of algorithms in SAS appeared first on The DO Loop.

Read more »

Simulating a drunkard’s walk in SAS

July 8, 2015
By
Simulating a drunkard’s walk in SAS

You've probably heard of a random walk, but have you heard about the drunkard's walk? I've previously written about how to simulate a one-dimensional random walk in SAS. In the random walk, you imagine a person who takes a series of steps where the step size and direction is a […] The post Simulating a drunkard's walk in SAS appeared first on The DO Loop.

Read more »


Subscribe

Email:

  Subscribe