A ghoulish Halloween Boo to all my readers! Hope my costume freaks you out, but even if it doesn't, I’m positive PROC FREQ will in a few amazing ways! Today’s Programming 2: Data Manipulation Techniques class asked about the power of PROC FREQ. Since I stopped to explain some of it's benefits to

The post Read more »

Tags: proc freq, SAS programmers, sas programming, tips and tricks, Uncategorized

Posted in SAS | Comments Off on 3 freaky ways PROC FREQ can work in your favor

I planed to extend nonWinferiority testing to one of my statistical notes, Equivalence Testing and TOST (Two One-Sided Test) since noninferiority test is simply half part of the equivalence test. Today I’m glad to find an even better explanation from SAS Usage Note 48616: Design and analysis of noninferiority studies You will love it...

Read more »

Tags: equivalence test, noninferiority test, proc freq, Proc TTEST, SAS, Statistics

Posted in SAS | Comments Off on Noninferiority Testing with SAS

There SAS applications/procedures/features were not necessarily available since 2012. This year I paid special attention to them when began to use SAS 9.3. The following notes are totally my personal endorsement purely based my own experience as a user: XML File Reading: SAS XML Mapper SAS XML Mapper itself is not an elegant tool...

Read more »

Tags: CDISC, Graph, Metadata, ods, ods graphics, ODS Report Writing, proc freq, Proc TTEST, SAS, SAS XML Mapper, t-test, XML

Posted in SAS | Comments Off on Best of SAS: A Personal Nomination 2012

In some settings it may be necessary to recode a categorical variable with character values into a variable with numeric values. For example, the matching macro we discussed in example 7.35 will only match on numeric variables. One way to conve...

Read more »

Tags: as.numeric(), convert categorical class to numeric, factor(), proc freq, set ds; by x;, table()

Posted in SAS | Comments Off on Example 10.5: Convert a character-valued categorical variable to numeric

A guy notices a bunch of targets scattered over a barn wall, and in the center of each, in the "bulls-eye," is a bullet hole. "Wow," he says to the farmer, "that’s pretty good shooting. How’d you do it?" "Oh," says the farmer, "it was easy. I painted the targets after I shot the...

Read more »

Tags: Binomial proportion inverval, Confidence Interval, proc freq, R, SAS, Statistics

Posted in SAS | Comments Off on Statistical Notes (5): Confidence Intervals for Difference Between Independent Binomial Proportions Using SAS

A latest updated post on Freakonomics, Beware the Weasel Word “Statistical” in Statistical Significance!, seemed to attempt to challenge frequentist statistics by Bayesian. I have no research on Bayesian and won’t jump to the debates. I’d rather to use this case to apply the Dragon’s Teeth and Fleas logic of hypothesis testing (at least...

Read more »

Tags: Bayesian, frequentist inference, Hypothesis Testing, Logic, P-value, proc freq, Proc TTEST, SAS, Statistics

Posted in SAS | Comments Off on Frequentist or Baysian

A guy notices a bunch of targets scattered over a barn wall, and in the center of each, in the "bulls-eye," is a bullet hole. "Wow," he says to the farmer, "that’s pretty good shooting. How’d you do it?" "Oh," says the farmer, "it was easy. I painted the targets after I shot the...

Read more »

Tags: Binomial proportion inverval, Confidence Interval, proc freq, R, SAS, Statistics

Posted in SAS | Comments Off on Statistical Notes (3): Confidence Intervals for Binomial Proportion Using SAS

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 on Example 9.35: Discrete randomization and formatted output