STAT540

Fall 2024


Computing in Statistics

Instructor: Yen-Yi Ho

Office: LeConte 216A

Class Meetings:

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

Classroom: Close-Hipp 436


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

Email: hoyen@stat.sc.edu

Teaching Assistant: Kaniz Fatema (KFATEMA@email.sc.edu)

TA office hours: MW 12:30PM-2PM, Tuesday 11:30PM-1PM, LeConte 111 


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.
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


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
Week Aug 19
Syllabus

Calendar


Getting Started with R and R Studio


R Markdown (Chapter 20.2 in Rafa)

Homework 1

Homework Template

dataP1HW2.txt

Rmarkdown
cheat sheet







Week Aug 26




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/28 before class)

Homework 2







Rcode_Basics1.R


ALLcode.R
Week Sep 02

Sep 02: Labor Day

R Basics II

Chapter 5: Getting Data Into R
Chapter 6: Getting Results Out of R



brainbod.txt




Rcode_Basics2.R


Week Sep 09

 

Programming Basics

Chapter 8: Logical Objects and Conditional Expression

Chapter 12: Defining Functions, Name Space
Chapter 10: For Loops, Vectorized Function 






Homework 2 Due
(9/11 before class)

Homework 3





programming-basics.R


experiment-design.tsv



programming-basics_9_16.R
Week Sep 16





The tidyverse (Chapter 4 in Rafa)

Data Visualization I

Data Visualization Principles

FlowingData

Data Exploration Through Time







Homework 3 Due
(9/18 before class)

Homework4

baby.txt





tidyverse.R

permutation.R
Week Sep 23



Data Visualization II

ggplot2 (Chapter 8 in Rafa)


Data Visualization Case Studies (Chapter 10 in Rafa)





Homework 4 Due
(9/25 before class)

Homework 5






Rcode_Chapters11&12.R



Visualization ggplot2



ggplot2 cheat sheet


ggplot2.R


Week Sep 30


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
(October 2 before class)








Week Oct 07

 
SAS OnDemand Invitation


SAS, Chapter 1

SAS, Chapter 2



Mid-term take-home exam


winequality-white.csv

winequality-red.csv

winequality-names.txt

Wine paper

Electric Vehicle



Week Oct 14


 SAS Chapter 3


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




SAS codes in Chapter 1.txt

SAS codes in Chapter 2.txt


blackjack.R
Week Oct 21


 SAS Chapter 4


Homework6

tshirt.txt
districtdata.txt
champ36pres.txt



Homework6 Due
Oct 23 before class

Homework 7

moviereview.txt



SAS codes in Chapter 3.txt



Week Oct 28

 
SAS Chapter 6







SAS codes in Chapter 4.txt
Week Nov 04


SAS Chapter 7
 

  

 
  Homework7 Due
  Nov 6 before class 

  Homework 8


SAS codes in Chapter 6.txt
Week Nov 11


  SAS Chapter 5
  
  SAS Chapter 8


 

 




SAS codes in Chapter 5.txt
Week Nov 18

   Final Project Presentation
 

  Homework 8 Due
  Nov 20 before class
 


SAS codes in Chapter 7.txt
Week Dec 02

 
   Final Project Presentation




Final Project Instruction

Final Project Proposal format

Final Project City

Final Project template

Final Project format


 

SAS codes in Chapter 8.txt


Final Project Due
Wed December 11, Friday before 5PM.