SAS on UNIX@hsph

Using Statistical program SAS on UNIX operating system. Directed towards Harvard University School of Public Health students and researchers but should be useful to many.

Monday, March 14, 2011

direct filename with path to a file

›
dir /s/b>list.txt
34 comments:

Regular expression wildcard

›
.+ http://www.ats.ucla.edu/stat/sas/code/perl_wildcard.htm
2 comments:
Thursday, March 10, 2011

Regular expressions

›
1. Search and extract a. Use Prxmatch before Prxposn 2. Remove whitespace readhtml xls2csv to speed up the reading
3 comments:
Thursday, May 8, 2008

Create a variable having value of median in categories

›
To find the median values of the categories (e.g. to assess test of trend) %macro hint(var1,var2); proc means data=fret median; class ...
3 comments:
Thursday, March 27, 2008

Coding interactions/effect modification to get Confidence Intervals

›
/************ THIS IS 4 X 3 interaction *************/ VARA0VARB0=0; VARA0VARB1=0;VARA0VARB2=0; VARA0VARB3=0; VARA1VARB0=0; VARA1VARB1=0;VAR...
228 comments:
Friday, February 1, 2008

Use a sample to hasten preliminary analysis

›
I have used following ways; ************************** proc surveyselect data=onenn method=srs n=10000 out=onen; run; **********************...
1 comment:
Wednesday, June 27, 2007

Concatenating sas macro variables

›
I always forget how to do it. %let nagasuchi=cases; data new; set library.old&nagasuchi; This would be read as data new; set library...
79 comments:
›
Home
View web version
Powered by Blogger.