10/04 SAS 實習課

875 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
875
On SlideShare
0
From Embeds
0
Number of Embeds
499
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002262171.htm
  • 10/04 SAS 實習課

    1. 1. Satistics and Data Analysis SAS Tutorial Canicia Smith caniciasmith@gmail.com Office hour: Wed 13:00-14:00
    2. 2. PROC PRINTPROC MEANS
    3. 3. USES OF PROC PRINT1.TO SPECIFY THE SAS DATA SET TO PRINT EX1. proc print; run;
    4. 4. 2.TO LIST THE DATA VALUES IN A SET EX1. PROC PRINT CAN BE FOLLOWED BY STATEMENTS THAT SUPPLYINFORMATION TO THE PROCEDURE. proc print; title “final grade for Semester1”; id subject; var exam1 exam2; run;
    5. 5. NB:1. Must use proc print when running data for the first time.1. SAS PROGRAMS RECOGNIZE KEY WORDS TITLE, ID , AND VAR, AND INTERPRET WHAT FOLLOWS IN THE PROPER CONTEXT.2. EACH STATEMENT ENDS IN A SEMICOLON ;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002262171.htm
    6. 6. USES OF PROC MEANS1. TO FIND – Mean – Standard deviation – Minimum score – Maximum scoreEX1. proc means; run;
    7. 7. 2.YOU CAN SPECIFY WHICH STATISTICS YOU WANT TOCOMPUTE BY SPECIFYING OPTIONS FOR PROC MEANS.EX1. proc means N mean std stderr max dec=1; var exam1 exam2; run;

    ×