
Welcome to STAT 540 (formerly STAT 517), Introduction to Statistical Computing. This page contains
updates to the course syllabus, computer notes from class,
homework assignments and important notices.
Send any questions to
grego@stat.sc.edu

- Syllabus
- Notices
Homework
- Exercises
- Slides/Notes
- SAS code and notes
- SAS documentation
- Chapter 1 code
- Chapter 2 code
- Chapter 3 code
- SAS code to manipulate character data.
- SAS code to demonstrate a simple IF statement, subsetting IF, and formatted PRINT.
- SAS code with a complicated IF-ELSE example.
- SAS code to demonstrate a subsetting IF.
- SAS code to experiment with DATE functions.
- David Hitchcock's SAS code demonstrating the use of the RETAIN statement using earthquake data.
- SAS code with an ARRAY example.
- SAS code to refer to a range of "unlike" input variables.
- Chapter 4 code
- SAS code to demonstrate Chapter 4 commands (TITLE, WHERE, LABEL, PROC PRINT)
- SAS code and SAS data set for a PROC SORT example.
- SAS code and comma-delimited text file demonstrating the use of the NODUPKEY option in PROC SORT.
- SAS code with a PROC SORT example that cleans up a PROC MEANS output file in preparation for a many-to-one merge.
- SAS code to hold a data line and print formatted labels in PROC FREQ.
- SAS code to group data with PROC FORMAT prior to a call to PROC FREQ.
- Simplified version of Don Edwards' SAS code and data set for straightforward PROC TABULATE call to motivate interest in PROC TABULATE projects.
- Chapter 6 code
- SAS code using SET and OUTPUT to stack records in a SAS data set.
- SAS code for some simple set and merge commands.
- SAS code for a typical match-merge.
- SAS code for a match-merge with multiple input data sets.
- SAS code for a one-to-many match-merge.
- STAT 706 example SAS code and Excel data for several one-to-many match-merges. The Excel file should be read into WORK as SAS data set SPLITCOV.
- SAS code demonstraing the IN= option in MERGE statements.
- SAS code and SAS data set to generate multiple data sets with the OUTPUT statement.
- PROC TRANSPOSE SAS code using visual acuity data.
- SAS code to re-create the transposed data with another PROC TRANSPOSE.
- SAS code using Lidar data set to demonstrate use of FIRST.variable and LAST.variable when using BY groups.
- Chapter 5 code
- Chapter 7 code
- SAS code for a couple demonstrations of the %LET command .
- SAS code demonstrating the use of %INCLUDE.
- SAS code demonstrating calculation of sampling probabilities from traffic intensity (upurban.csv) data.
- SAS code demonstrating a regression macro.
- SAS code demonstrating CALL SYMPUT and a non-macro language alternative.
- SAS code demonstrating CALL SYMPUT and %IF statements. Trial data sets with one , two and four groups.
- SAS code demonstrating CALL SYMPUT to simplify the sampling probabilities macro.
- Chapter 8 code
- SAS code and Excel worksheet to construct bar charts with PROC SGPLOT.
- SAS code to construct histograms and box plots with PROC SGPLOT.
- R code for density estimation demonstration.
- SAS code and one of the data sets needed to construct scatter plots, time series plots and smoothed scatter plots with PROC SGPLOT.
- R code for scatterplot smoothing demonstration.
- Supplemental SAS code
- R code and notes
- Data sets and other code
- Test 1
- Test 2
- Final Exam
- Project information
Return to Department of Statistics Home Page