Articles by Ken Kleinman

Example 8.5: bubble plots part 3

September 14, 2010 | Ken Kleinman

An anonymous commenter expressed a desire to see how one might use SAS to draw a bubble plot with bubbles in three colors, corresponding to a fourth variable in the data set. (x, y, z for bubble size, and the category variable.) In a previous entries...
[Read more...]

Summer hiatus

August 2, 2010 | Ken Kleinman

We're taking a break from posting for most of August. We'll be back in a month with new examples, including R- and SAS-applicable tricks and tools.Please drop us any ideas in the comments or by e-mail. We love feedback of any kind.
[Read more...]

Example 8.2: Digits of Pi, redux

July 12, 2010 | Ken Kleinman

In example 8.1, we considered some simple tests for the randomness of the digits of Pi. Here we develop a different test and implement it. If each digit appears in each place with equal and independent probability, then the places between recurrences...
[Read more...]

Example 8.1: Digits of Pi

July 6, 2010 | Ken Kleinman

Do the digits of Pi appear in a random order? If so, the trillions of digits of Pi calculated can serve as a useful random number generator. This post was inspired by this entry on Matt Asher's blog. Generating pseudo-random numbers is a key piece o...
[Read more...]

Example 7.35: Propensity score matching

May 3, 2010 | Ken Kleinman

As discussed in example 7.34, it's sometimes preferable to match on propensity scores, rather than adjust for them as a covariate.SASWe use a suite of macros written by Jon Kosanke and Erik Bergstralh at the Mayo Clinic. The dist macro calculates the ...
[Read more...]

Example 7.33: Specifying fonts in graphics

April 19, 2010 | Ken Kleinman

For interactive data analysis, the default fonts used by SAS and R are acceptable, if not beautiful. However, for publication, it may be important to manipulate the fonts. For example, it would be desirable for the fonts in legends, axis labels, or o...
[Read more...]

Example 7.28: Bubble plots

March 22, 2010 | Ken Kleinman

A bubble plot is a means of displaying 3 variables in a scatterplot. The z dimension is presented in the size of the plot symbol, typically a circle. The area or radius of the circle plotted is proportional to the value of the third variable. This c...
[Read more...]

Example 7.26: probability question

March 8, 2010 | Ken Kleinman

Here's a surprising problem, from the xkcd blog.Suppose I choose two (different) real numbers, by any process I choose. Then I select one at random (p= .5) to show Nick. Nick must guess whether the other is smaller or larger. Being right 50% of the ...
[Read more...]

Example 7.23: the Monty Hall problem

January 20, 2010 | Ken Kleinman

The Monty Hall problem illustrates a simple setting where intuition often leads to a solution different from formal reasoning. The situation is based on the game show Let's Make a Deal. First, Monty puts a prize behind one of three doors. Then the player chooses a door. Next, (without moving ...
[Read more...]
1 3 4 5 6

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)