Tag: SAS

Happy SAS Graphing!

I’m not a R user. Instead, I’m an observer. For example, I love the R Graph Gallery:
http://addictedtor.free.fr/graphiques/thumbs.php
As a SAS programmer, I also love Robert Allison’s SAS/Graph Examples and Michael Friendly’s SAS Graphic Programs and Macros (the only two SAS graph galleries available on website maintained by users):
http://robslink.com/SAS/Home.htm
http://www.datavis.ca/sasmac/
I used to be a casual user of SAS Graph. […]

Default value to macro variable

NOTE: This is a great one we picked up from our friends over at the SAS community. We have run across this literally hundreds of times while programming SAS macros. You need to have a default value for a variable and you don’t want to write another macro to set it if it doesn’t exist. […]

Logics in mathematics and in daily life: a statistical programming example

Refresh some basic logical propositions (or statements):
implication:       if       P then       Q (P—>Q)
inverse:            if not P then not Q (-P—>-Q)
converse:         if       Q then       P (Q—>P)
contrapositive: if not Q then not P (-Q—>-P)
contradition:    if       P then not Q (P—>-Q)

Mathematically or logically speaking, if the implication statement holds, then the contrapositive holds, but the inverse does not hold, […]

XML and SAS

Last month, I gave a talk, XML: the SAS Approach, in CDISC Interchange China 2010(at the Medical School of Fudan University, Shanghai, 2010-09-15). FDA favors CDISC and HL7, the two XML based standards, and SAS programmers in biopharmaceutical industry  need incorporate the XML technology into their toolboxes. Fortunately, you don’t need to be an XML […]

Dump wide table to HTML report (SAS)

This SAS macro dumps a data set with many variables to an HTML report in a single line of SAS code. It’s useful on wide data sets (or in database speak, a wide table with many columns), with long character values, or where the customer needs to f…

Using Enterprise Guide on Windows 7

I recently got a new computer with a new (to me) operating system—Windows 7.  I’m one of those diehards who stayed with Windows XP (and even with Office 2003), refusing to switch to Vista.  This is a big change.  I feel slightly dazed and disoriented because everything works so differently. So you can imagine how […]

NOTE: SAS 9.2 Procedures by Name and Product

I came across a list of SAS procedures by name and by product the other day. It was very useful to me at the time and I thought I’d pass it on…

http://support.sas.com/documentation/cdl/en/allprodsproc/63875/HTML/default/viewer.htm#/documentation/cdl…

NOTE: Sort Your Sorted Data

In my previous post I spoke of using views to give you access in EG visual coding to tables with dynamic names. This works well, but there’s one final observation to make if you want to avoid poor performance in some circumstances.

If you’re used to u…