STAT540

Fall 2026


Computing in Statistics

Instructor: Yen-Yi Ho

Office: LeConte 216A

Class Meetings:

Monday/Wednesday 2:20p - 3:35p 

Classroom: LeConte 103


Dr. Ho's office Hours: Thursday afternoon 16:30-17:30PM, Friday morning 11:00 AM-12:00 PM or by appointment (LeConte 216A)

Email: hoyen@stat.sc.edu

Teaching Assistant: Alex Goebel

TA email: ajgoebel@email.sc.edu

TA office hours: Tuesday at 12PM -1 PM, Thursday at 12PM - 1 PM (LeConte 219A) or Virtual


Textbook:

  1. Basics of R: A Primer by Don  Edwards (Required)

  2. The Little SAS book: A Primer, 6th edition, by Delwiche and Slaughter (Required)
 (earlier editions are probably OK too)

 3. Introduction to Data Science: Data Wrangling and Visualization with R by

Rafael A. Irizarry   (Required)

  Older Free PDF version available here

4. Python Data Science Handbook by Jake VanderPlas (Required)

available at https://jakevdp.github.io/PythonDataScienceHandbook/


 5.
John Verzani's SimpleR notes.

                                

Resources:

1. Instruction for downloading R and R Studio

2. SAS OnDemand Entry page

3. Enroll in SAS OnDemand: 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:


4. SAS OnDemand Control Center

5. This is Statistics.org


SAS OnDemand Invitation

Annoucements:

Approximate course outline: (Lecture notes will be updated often)

Most of my SAS slides were shamelessly borrowed from Dr. David Hitchcock.

Date Weekly topic
Homework
R/SAS code
Reading
Week Aug 17
Syllabus

Calendar


Getting Started with R and R Studio


Quarto (Chapter 20.2 in Rafa)

Homework 1

R Homework Template

dataP1HW2.txt

Quarto
cheat sheet









  Rafa Chap 1
  Don Chap 1
Week Aug 24




R Basics I

Chapter 2: Objects, Modes Assignments (Don)
Chapter 3: Getting Help
Chapter 4: Managing Objects
Chapter 9: NAs, Coercion, Subsetting, Sorting, and Indexing







Homework 1 Due
(8/26 before class)

Homework 2







Rcode_Basics1.R


ALLcode.R


Rafa Chap 2

Don Chap 2, 3, 4, 9
Week Aug 31



R Basics II

Chapter 5: Getting Data Into R

Chapter 6: Getting Results Out of R



brainbod.txt

brainbod2.txt

brainbod1.txt

brainbod.csv

brainbod4.txt



Rcode_Basics2.R




 Rafa Chap 5, 6

  Don Chap 5, 6
Week Sep 07

 
Sep 07: Labor Day No Class

Programming Basics

Chapter 8: Logical Objects and Conditional Expression

Chapter 12: Defining Functions, Name Space






Homework 2 Due
(9/9 before class)

Homework 3





programming-basics.R


experiment-design.tsv







 Rafa Chap 3

 Don Chap 8, 12
Week Sep 14





Chapter 10: For Loops, Vectorized Function 


The tidyverse (Chapter 4 in Rafa)

Data Visualization I

Data Visualization Principles

FlowingData

Data Exploration Through Time







Homework 3 Due
(9/16 before class)

Homework4

baby.txt





tidyverse.R

permutation.R


Rafa Chap 4

Don Chap 10
Week Sep 21



Data Visualization II

ggplot2 (Chapter 8 in Rafa)


Data Visualization Case Studies (Chapter 10 in Rafa)





Homework 4 Due
(9/23 before class)

Homework 5






Rcode_Chapters11&12.R



Visualization ggplot2



ggplot2 cheat sheet


ggplot2.R




 Rafa Chap 7-10

 
Week Sep 28


Data Wrangling

Extract data from the web (Chapter 15 in Rafa)

String processing (Chapter 16 in Rafa)

Text analysis (Chapter 17 in Rafa)



Homework 5 Due
(9/30 before class)









 Rafa Chap 11-15
Week Oct 05


 Midpoint in Semester
 


Getting Started with Jupyter Notebook and JupyterLab


Python Basic
 Data Types
   NumPy


Mid-term take-home exam


winequality-white.csv

winequality-red.csv

winequality-names.txt

Wine paper

Electric Vehicle




Python Basic 1
Notebook1







Python Data Science Handbook Chap 1, 2

Week Oct 12


 Plots in Python

 Python Functions
 
 



Mid-term take-home exam due Oct 14 before class




Python Basic 2
Notebook2

Python Basic 3
Notebook3





Python Data Science Handbook Chap 3
Week Oct 19


 If and Loops

 Modules and Packages


 

Data Manipulation with Pandas
 


Homework6
Homework6 Quarto file





Homework6 Due
Oct 21 before class

Homework 7

Homework7 Quarto file




Python Basic 4
Notebook4


Python Data Science Handbook Chap 4
Week Oct 26

 
  

SAS OnDemand Invitation

SAS, Chapter 1

SAS, Chapter 2
 





SAS codes in Chapter 1.txt

SAS codes in Chapter 2.txt

SAS codes in Chapter 3.txt


blackjack.R

SAS codes in Chapter 4.txt


SAS Chap 1, 2
Week Nov 02


SAS Chapter 3


 SAS Chapter 4

 

  

 
  Homework7 Due
  Nov 11 before class 

  Homework 8
 
tshirt.txt
districtdata.txt
champ36pres.txt


 

SAS codes in Chapter 6.txt


SAS Chap 3, 4
Week Nov 9


   SAS Chapter 6

   SAS Chapter 7




Final Project Proposal Due
Nov 11 before class
 




SAS codes in Chapter 5.txt


SAS Chap 6, 7
Week Nov 16
 

  Final Project Presentation


  Homework 8 Due
  Nov 18 before class
 


SAS codes in Chapter 7.txt


 
Week Nov 30

 
   Final Project Presentation


Final Project Instruction

Final Project Proposal format


Final Project template

Final Project format

Final Project Presentation Instruction



 

SAS codes in Chapter 8.txt



Final Project Due
December 11, Friday before 5PM.