In our previous entry, we described how to calculate the Nelson-Aalen estimate of cumulative hazard. In this entry, we display the estimates for the time to linkage to primary care for both the treatment and control groups in the HELP study.RWe use the…
Connecting SAS to Access 2007 (.accdb)
Here is a working example of how to connect SAS 9.1.3 SP4 to a Microsoft Office Access 2007 .accdb data source. First, let’s use a pass through query. The file is called c:\saves.accdb and contains a table called table1. proc sql; /* create an OD…
How To Get What You Want Out of a Data Step Merge
This Fall my daughter will be going to kindergarden. So like all other hyper-attentive parents we have started introducing her to the concept of homework. The other night I got out her crayons and introduced her to set theory. After about an hour I …
Literature and SAS: Or, How studying Melville has made me a better SAS user
I think this blog would be so much more literate, if I started it with a classic opening line, like “Call me Ishmael” or “riverrun, past Eve and Adams”. Those are the opening lines of Melville’s Moby-Dick and Joyce’s Finnegans Wake, re…
Did you know… you can sort searches by date
We don’t display dates on our Web pages. We used to do that. Some people felt that content was less useful if it was older. That isn’t always true. support.sas.com contains some great samples that show language usage best practices. These sam…
Boost to tackle nonlinearity
data nonlinear;
do x=1 to 627;
p=(sin(x/100)+1)*0.45;
do j=1 to 100;
x1=x+(j-1)/100;
if ranuni(8655645)<=p then y=1; else y=0;
output; drop p j;
end;
end;
run;
proc rank data=nonlinear out=nonlinearrank groups=…