Unformatted text preview:

The Heinz SchoolMarch 8, 19991. Why Use SAS?2. Getting StartedStarting SASSAS WindowsUsing Programs to Analyze Data in SAS3. DataImporting ASCII dataAccessing compressed data from a web pageTo access data from a web page:Accessing raw data from a web pageNote: If one of your libnames refers to the floppy disk drive (like “mydisk”), you must have a disk in the drive.Data StepBringing in SAS dataData manipulationif-thenCreating new variablesChanging the value of the same variableLinking conditionsElse subcommandKeeping and dropping variablesKeeping and dropping observationsUsing if with set4. ProceduresCONTENTSFREQUNIVARIATEPRINTMEANSCORRREGSORTFSBROWSEBy5. Where to get helpSAS manualsSAS help on lineAsk someone6. OtherEditing your programs and outputKeeping track of you programsWriting good codeCommon errorsSome Useful FunctionsTypes of FilesDataFunction KeysAcquiring SAS7. Thanks8. Sample programPC SAS: An introduction to SAS70-776, Manipulation of Large Data SetsThe Heinz SchoolCarnegie Mellon UniversityRobert T. GreenbaumMarch 8, 1999Contents1. WHY USE SAS?..........................................................................................................................................32. GETTING STARTED................................................................................................................................3STARTING SAS.............................................................................................................................................3SAS WINDOWS............................................................................................................................................3USING PROGRAMS TO ANALYZE DATA IN SAS............................................................................................33. DATA...........................................................................................................................................................4IMPORTING ASCII DATA...............................................................................................................................4Accessing compressed data from a web page.........................................................................................5Accessing raw data from a web page.....................................................................................................5DATA STEP....................................................................................................................................................6BRINGING IN SAS DATA...............................................................................................................................7DATA MANIPULATION...................................................................................................................................7if-then......................................................................................................................................................8Creating new variables...........................................................................................................................8Changing the value of the same variable...............................................................................................8Linking conditions..................................................................................................................................9Else subcommand...................................................................................................................................9KEEPING AND DROPPING VARIABLES............................................................................................................9KEEPING AND DROPPING OBSERVATIONS....................................................................................................104. PROCEDURES.........................................................................................................................................10CONTENTS..............................................................................................................................................10FREQ.........................................................................................................................................................11UNIVARIATE............................................................................................................................................11PRINT........................................................................................................................................................11MEANS.....................................................................................................................................................11CORR........................................................................................................................................................12REG...........................................................................................................................................................12SORT.........................................................................................................................................................12FSBROWSE..............................................................................................................................................13BY..............................................................................................................................................................135. WHERE TO GET HELP.........................................................................................................................13SAS MANUALS...........................................................................................................................................13SAS HELP ON LINE.....................................................................................................................................13ASK SOMEONE............................................................................................................................................146. OTHER......................................................................................................................................................14Editing your programs and output.......................................................................................................14Keeping track of you


View Full Document

CMU PPP 90776 - An introduction to SAS

Documents in this Course
Load more
Download An introduction to SAS
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view An introduction to SAS and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view An introduction to SAS 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?