Posts Tagged ‘ SAS ’

Setting the HTML title tag in SAS ODS (the right way)

January 5, 2010
By
Setting the HTML title tag in SAS ODS (the right way)

In our department and various places on the Intertubes, SAS programmers set the HTML title tag (which sets the title in web browsers and on search engines) in ODS using the headtext option: ods html headtext="<title>My great report</title>" /* wrong! */ file="foo.html"; This may work in some situations, but it’s ugly and wrong. To see

Read more »

R in the NYT

December 30, 2009
By
R in the NYT

The statistical package R received a positive overview in the New York Times recently.

Read more »

SAS: “The query requires remerging summary statistics back with the original data”

September 22, 2009
By
SAS: “The query requires remerging summary statistics back with the original data”

Coming from a background writing SQL code directly for “real” RDBMS (Microsoft SQL Server, MySQL, and SQLite), I was initially confused when SAS would give me the following ‘note’ for a simple summary PROC SQL query: 429 proc sql; 430 create table undel_monthly as 431 select 432 year(date) as year, 433 month(date) as month, 434

Read more »

Example 7.4: A prettier jittered scatterplot

July 2, 2009
By
Example 7.4: A prettier jittered scatterplot

The plot in section 7.3 has some problems. At the very least, the jittered values ought to be between 0 and 1, so the smoothed lines fit better with them. Once again we use the data generated in section 7.2 as an example. For both SAS and R, we use conditioning (section 1.11.2) to make the jitter happen...

Read more »

R in SAS

February 15, 2009
By
R in SAS

Another "proof" that R definitely is one of mainstream statistical packages is the news that SAS will provide an interface to R via SAS/IML Studio (today known as SAS Stat Studio).

Read more »

Multiple Assignments or the Idiosyncrasies of R and SAS

May 8, 2008
By
Multiple Assignments or the Idiosyncrasies of R and SAS

Working on top of someone else's code at work a couple of weeks ago I stumbled upon a piece of SAS code that went like this: length check 3; ... check = Name = 'Netter' Being raised in the land of open-source and having programmed in R since I was in ...

Read more »

The hammer, or the sledgehammer? A small study in simulation

January 29, 2008
By
The hammer, or the sledgehammer? A small study in simulation

RKN over at Epidemiology blog had a small problem he solved using simulation:I have been interested in the following question: if there are, let's say, 5 genes involved in the liability of fx risk, and each gene has two alleles with one of them conferr...

Read more »

SAS weirdness

March 21, 2007
By
SAS weirdness

From time to time, I'll complain about the weirdness of SAS, the statistical analysis program of choice for much of the pharmaceutical industry. This post is one such complaint.Why, oh why, does SAS not directly give us the asymptotic variance of the M...

Read more »

Merging data: A tutorial

May 7, 2006
By
Merging data: A tutorial

The situation: you have two datasets with a common variable, and you want to incorporate both into one large dataset containing all of the variables. This is called merging data, and it’s easy to do in any standard statistical package. In these examples, I assume that there is only one variable between any datasets to

Read more »