Fall 2022 - STAT 642 G100

Introduction to Statistical Computing and Exploratory Data Analysis - SAS (2)

Class Number: 4675

Delivery Method: In Person


  • Course Times + Location:

    Sep 7 – Dec 6, 2022: Thu, 12:30–2:20 p.m.

  • Exam Times + Location:

    Dec 9, 2022
    Fri, 8:30–11:30 a.m.

  • Prerequisites:

    STAT 285 or STAT 302 or STAT 305 or STAT 604 or STAT 605 or ECON 333 or equivalent. Open only to students in departments other than Statistics and Actuarial Science.



Introduces the SAS statistical package. Data management; reading, editing and storing statistical data; data exploration and representation; summarizing data with tables, graphs and other statistical tools; and data simulation. Students with credit for STAT 340 or STAT 342 may not take STAT 642 for further credit.


Course Outline:

SAS component

  1. What is SAS?
      - Downloading and installing
      - Overview of the system
  2. Data management in SAS
      a. Data input and structures
          - DATA step
          - Reading specially formatted files
          - Date/time/character formats and manipulations
          - Derived variables
          - Exporting
      b. Data access: from database systems using query languages
      c. Merging and reshaping data
          - sorting/subsetting (set/if/where statements)/ merging/transposing
          - processing using DO LOOPS and SAS arrays
          - modify variable attributes
  3. Data exploration and representation in SAS
          - basic procs (print, plot, tabulate, means, univariate, freq)
          - by statement and uses in analysis and simulation
          - output delivery system to extract information from analyses
  4. Data simulation in SAS


  • Assignments 10%
  • Midterm 40%
  • *Final Exam (with an option to substitute part of the percentage assigned to the final exam with the completion of a project) 50%


Above grading is subject to change.



Required Text:

SAS and R, Data Management, Statistical Analysis, and Graphics, 2nd ed, 
by Ken Kleinman and Nicholas J. Horton, Publisher: CRC Press

Hard Copy ISBN: 9781466584495
eBook ISBN: 9781466584501
eBook Rental ISBN: 9781466584501


Your personalized Course Material list, including digital and physical textbooks, are available through the SFU Bookstore website by simply entering your Computing ID at: shop.sfu.ca/course-materials/my-personalized-course-materials.

Graduate Studies Notes:

Important dates and deadlines for graduate students are found here: http://www.sfu.ca/dean-gradstudies/current/important_dates/guidelines.html. The deadline to drop a course with a 100% refund is the end of week 2. The deadline to drop with no notation on your transcript is the end of week 3.

Registrar Notes:


SFU’s Academic Integrity website http://www.sfu.ca/students/academicintegrity.html is filled with information on what is meant by academic dishonesty, where you can find resources to help with your studies and the consequences of cheating. Check out the site for more information and videos that help explain the issues in plain English.

Each student is responsible for his or her conduct as it affects the university community. Academic dishonesty, in whatever form, is ultimately destructive of the values of the university. Furthermore, it is unfair and discouraging to the majority of students who pursue their studies honestly. Scholarly integrity is required of all members of the university. http://www.sfu.ca/policies/gazette/student/s10-01.html