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=…
Example 7.39: Nelson-Aalen estimate of cumulative hazard
In our previous example, we demonstrated how to calculate the Kaplan-Meier estimate of the survival function for time to event data. A related quantity is the Nelson-Aalen estimate of cumulative hazard. In addition to summarizing the hazard incurred …
Memorial Day — putting names to the numbers
Contributed by Dr. Robert Allison, Research & Development, SAS
Memorial Day is a U.S. federal holiday to commemorate the U.S. men and women who died while in military service.
My SAS graphs are often about numbers and trends — but for…
Convert data to CSV file
In addition to the export file wizard and proc export (section 1.2.3 of SAS and R), SAS provides a the nifty little %ds2csv macro that can do this quickly and easily.
The advantages to this approach are that there are a few extra options and that…
What Time Do They Roll Up the Sidewalks in Cary?
When you travel as much as a typical SAS instructor, you get to be an expert on hotels, restaurants and entertainment. Anyone can figure out where to eat or what to do in downtown Chicago or in Manhattan, but it takes a dedicated traveler to show…