STAT 540 (Computing in Statistics)

Fall 2019

Instructor

David Hitchcock, associate professor of statistics

Syllabus

Syllabus: (Word document) or (pdf document)

Office Hours -- Fall 2019

Mon, Tues, Wed, Fri 9:30-10:30 a.m or by appointment

Office: 209A LeConte College
Phone: 777-5346
E-mail: hitchcock@stat.sc.edu

Class Meeting Time

Tues-Thurs, 1:15 pm - 2:30 pm, LeConte 210 or via distance by streaming video

Purpose: To help students learn computing skills that will be useful to them both in academic endeavors and as working statisticians. To introduce students to programming using the free software package R and the widely used commercial software SAS. Programming skills, rather than straightforward data analyses, are emphasized in this course.

Current Textbook: The Little SAS Book: A Primer (5th edition), by Delwiche and Slaughter (earlier editions are probably OK too).

Required Supplementary Material: Supplementary material available for download:
Basics of R: A Primer, by Don Edwards.
Click here for the Basics of R: A Primer (as Word document) or Basics of R: A Primer (as pdf).
Introduction to R, Comprehensive R Archive Network (CRAN).
Available at CRAN home page (click "Manuals" at left side of page; then choose the first manual, "Introduction to R").

Required Computing Resources: Access to a computer with R (available as a free download from the CRAN home page) and SAS (students who want SAS can either buy a copy from USC Computer Services, or use SAS Studio via SAS OnDemand for free (see below)). Help in using R can be found on the CRAN home page.

Downloading Instructions

Access Instructions for SAS Studio


After going to the entry page, create a student account. You will receive an enrollment link in an email from the course instructor. Once your account is created, you can access SAS Studio by going to the Control Center:

SAS Resources

Useful Links

Course Outline

 

Topics Covered
Text
Time
Objects in R; Inputting and Outputting Data in R
Edwards
1.5 weeks
R Graphics, Functions, Arithmetic, Logicals, Conditional Execution, Subsetting, Sorting, Iteration
Edwards
2 weeks
Random Variables and Simulation Studies
TBA
1.5 weeks
Introduction to SAS; Reading and Writing Data
Delwiche and Slaughter
2 weeks
Working with Your Data; Sorting, Printing, Summarizing Data
Delwiche and Slaughter
2 weeks
Modifying and Combining Data Sets
Delwiche and Slaughter
1 week
MACRO programming in SAS; ODS output; PROC SGPLOT
Delwiche and Slaughter
2.5 weeks

 

Slides for Class Notes

Example R Code from Class

SAS Code: Examples from Class

Homework

Data Files for Homework

Example Homework Solutions

Information about the Graduate Student Project

Project Description (Word document) or Project Description (pdf document)

Exams