Stat680  Examples  Fall 2015


Home Announcements Classnotes Stat6800 Exercises Homework Assignments Solutions Projects Links Data

  1. First SAS Example (eg00.sas).
  2. eg01.sas (basic concepts #1). The SAS data sets ADMIT and SITES are generated by 001.sas. The raw data file visit.dat is also available.
  3. For basic concepts #2: SAS codes filePut.sas, mixed.sas, FormattedInput.sas, top10cities.sas, and ModListInput.sas and raw data files FormattedInput.dat, top10cities2000.dat, and ModListInput.dat are available
  4. For basic concepts #3: SAS codes datetime.sas, sasdatetime.sas, sasdatetime2.sas, sumretain.sas, retain2.sas, trailingat.sas, and condassign.sas are available.
  5. For basic concepts #4: SAS code RandomData.sas is available.
  6. For basic concepts #5: SAS code ProcFormat.sasand harvest1.sas are available.
  7. For basic concepts #6: SAS code report1.sas, ProcMeans.sas, ProcFreq.sas, and report2.sas, are available.
  8. For basic concepts #7: SAS code DoLoop.sas, Array.sas harvest1.sas and implicitArray.sas are available.
  9. For basic concepts #8: SAS codes FirstLast.sas, FirstLast2.sas, ReadMultipleFiles.sas, SetPoint.sas and TrailingAt2.sas are available.
  10. For basic concepts #9: SAS codes CombineData0.sas CombineData1.sas are available.
  11. For basic concepts #10: SAS codes ODS1.sas and ODS2.sas are available. An example on using ODS TRACE: p54.sas.
  12. Using PROC SORT, PROC TRANSPOSE, PROC FREQ, PROC REPORT, and merge statement in DATA step to convert wide format data to long format data and then produce custom summary report:
    reshape1.sas, reshape2.sas, and reshape3.sas. Also see ex40to42.sas.
  13. For DDE with Excel in SAS: SAS codes ExcelDDE.sas is available.
  14. For PROC IML #1: SAS codes ProcIML01.sas, ProcIML02.sas, ProcIML03.sas, ProcIML04.sas, ProcIML05.sas, ProcIML06.sas, ProcIML07.sas, ProcIML08.sas and ProcIML09.sas are available.
  15. For PROC IML #2: SAS codes ProcIML10.sas and ProcIML11.sas are available.
  16. For SAS macros #1 to #5: SAS codes macro01.sas, macro02.sas, macro03.sas, macro04.sas, macro05.sas, macro06.sas, macro07.sas, macro08.sas, macro09.sas, and macro10.sas are available.
  17. For SAS SQL #1: SAS codes sql01.sas is available. Examples showing that data step merge and PROC SQL joins are different concepts: merge+sql1.sas, merge+sql2.sas (and the (edited) output merge+sql2.xlsx).
  18. Align SAS Data Set with Specifications:
    Method #1: align.sas and ADHT.csv (Specifications file).
    Method #2: align2.sas and ADHTattributes.sas (ADHT data shell).

Home Announcements Classnotes Stat6800 Exercises Homework Assignments Solutions Projects Links Data

2015-09-07