Sample Programs

 

Making several observations out of one: Introductory sample program.  Use this as an example for commenting a program.  Other concepts and program statements are demonstrated as well.
Output Statement - making several data sets
Arrays and More
Table Lookup
Using PUT and INPUT functions
Using Match Merge
Finding Patients Meeting Selection Criteria
SAS Program
Output
SAS Indexes and More
Single and Composite Indexes
Proc Freq on the results of a Proc Freq: Distribution of Patient Visits
SAS Macro Language
Examples of Simple Macros
Using SAS Macro Variables
Another Macro Example
Data Entry Examples
Data Entry with Excel (MS Excel file)
Data Entry using Access (MS Access file)
PRINS Survery Data Entry (MS Access file)
Aorta Study Data Entry (MS Access file)
EpiInfo Example (MS Access file)
SAS/FSEdit Examples
fsedit.sas - this example is shown in the lecture on Data Sources and Data Entry
From the SAS Sample Library
Screen Catalog
Load this to your c:\bios524\classlib directory, or change the paths in the next two files.
fsedit-1.sas
fsedit-2.sas
Reading from and Writing to Excel
Random Number & Applications
Simple Congruential Random Number Generators
Generate Sequence of n Uniform Random Values
RANUNI versus Call RANUNI
Stratified Random Sample
Estimating an Event Probability
Binomial Random Values
Normal Random Values
Numerical Accuracy and Algorithms
Floating Point Representation
IML
Examples covered in class
Exercises covered in class (see Lecture notes )
SAS on Unix
Class examples