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...
Read more »
Tags: apply(), capture.output(), Matrix, methods(), proc freq, rand function, replicate(), sample(), SAS formats, SAS macro
Posted in SAS | Comments Off
The Bland-Altman plot is a visual aid for assessing differences between two ways of measuring something. For example, one might compare two scales this way, or two devices for measuring particulate matter. The plot simply displays the difference betw...
Read more »
Tags: assessing differences, Bland-Altman plot, deparse(substitute(), paste(), PROC STANDARD, SAS macro, set.seed(), substitute function, vref optioncall symput
Posted in SAS | Comments Off
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...
Read more »
Tags: apply(), ifelse(), Matrix, p.adjust(), proc multtest, proc transpose, SAS macro, simulation studies
Posted in SAS | Comments Off
Hi! My name is Jim. I’m a SAS instructor based in Irvine, CA. I spend a lot of time each year teaching students in CA and across the United States how to program in SAS and how to master the SAS macro facility. In case you haven’t taken one...
Read more »
Tags: SAS macro, Uncategorized
Posted in SAS | Comments Off
Small multiples are one of the great ideas of graphics visionary Edward Tufte (e.g., in Envisioning Information). Briefly, the idea is that if many variations on a theme are presented, differences quickly become apparent. Today we offer general guida...
Read more »
Tags: call symput, college majors, colors, drop statement, Edward Tufte, grep() function, Michael Friendly, pie() function, proc gchart, proc greplay, repeated multiples, SAS macro
Posted in SAS | Comments Off
Small multiples are one of the great ideas of graphics visionary Edward Tufte (e.g., in Envisioning Information). Briefly, the idea is that if many variations on a theme are presented, differences quickly become apparent. Today we offer general guida...
Read more »
Tags: call symput, college majors, colors, drop statement, Edward Tufte, grep() function, Michael Friendly, pie() function, proc gchart, proc greplay, repeated multiples, SAS macro
Posted in SAS | Comments Off
Dear Miss SAS Answers, I run a lot of programs that call other programs with %include. I was wondering if there was a way, perhaps through a SAS Automatic Macro variable, to determine 1) whether a program was called or "included" from another program? ...
Read more »
Tags: %INCLUDE, Linda Jolley, miss sas answers, SAS macro, Uncategorized
Posted in SAS | Comments Off
Usually, we're content to use a pseudo-random number generator. But sometimes we may want numbers that are actually random-- an example might be for randomizing treatment status in a randomized controlled trial.The site Random.org provides truly rando...
Read more »
Tags: API, as.numeric(), function, paste(), pseudo-random numbers, quoting, radio static, random numbers, read from URL, readLines(), SAS macro
Posted in SAS | Comments Off