# Posts Tagged ‘ apply() ’

## Example 9.35: Discrete randomization and formatted output

June 18, 2012
By

A colleague asked for help with randomly choosing a kid within a family. This is for a trial in which families are recruited at well-child visits, but in each family only one of the children having a well-child visit that day can be in the study. The...

Tags: , , , , , , , , ,
Posted in SAS | Comments Off on Example 9.35: Discrete randomization and formatted output

## Example 9.32: Multiple testing simulation

May 21, 2012
By

In examples 9.30 and 9.31 we explored corrections for multiple testing and then extracting p-values adjusted by the Benjamini and Hochberg (or FDR) procedure. In this post we'll develop a simulation to explore the impact of "strong" and "weak" control...

Tags: , , , , , , ,
Posted in SAS | Comments Off on Example 9.32: Multiple testing simulation

## Example 9.26: More circular plotting

April 9, 2012
By

SAS's Rick Wicklin showed a simple loess smoother for the temperature data we showed here. Then he came back with a better approach that does away with edge effects. Rick's smoothing was calculated and plotted on a cartesian plane. In this entry we'...

Tags: , , , ,
Posted in SAS | Comments Off on Example 9.26: More circular plotting

## Example 9.25: It’s been a mighty warm winter? (Plot on a circular axis)

April 2, 2012
By

People here in the northeast US consider this to have been an unusually warm winter. Was it?The University of Dayton and the US Environmental Protection Agency maintain an archive of daily average temperatures that's reasonably current. In the case o...

Tags: , , , ,
Posted in SAS | Comments Off on Example 9.25: It’s been a mighty warm winter? (Plot on a circular axis)

## Example 9.21: The birthday "problem" re-examined

February 23, 2012
By

The so-called birthday paradox or birthday problem is simply the counter-intutitive discovery that the probability of (at least) two people in a group sharing a birthday goes up surprisingly fast as the group size increases. If the group is only 23 peo...

Tags: , , , , , , , , , , ,
Posted in SAS | Comments Off on Example 9.21: The birthday "problem" re-examined

## Example 9.19: Demonstrating the central limit theorem

January 11, 2012
By

A colleague recently asked "why should the average get closer to the mean when we increase the sample size?" We should interpret this question as asking why the standard error of the mean gets smaller as n increases. The central limit theorem shows t...

Tags: , , , , , , ,
Posted in SAS | Comments Off on Example 9.19: Demonstrating the central limit theorem

## 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.