SAS Programming for R Users, Part 2
2h 2mIntermediate2021-11-15
Authors

Jordan Bakerman
Instructor, SAS Expert
Course details
SAS Programming for R Users explores how you can apply your understanding of R—the language of big data—in the SAS environment. In this course, Jordan Bakerman walks through essential SAS programming concepts. To begin, he discusses random number generation and plotting, including how to create standard R plots and enhance the plot. He then dives into a discussion of descriptive procedures, Output Delivery System (ODS), and macros, sharing how to create data tables with ODS, create macro programs with macro statements, and more. To get the most from this course, make sure to watch SAS Programming for R Users, Part 1.
Learning objectives
Random number generation
Plotting with the SGPLOT procedure
Enhancing the plot
CORR, FREQ, and MEANS procedures
Selecting output to print and suppress
Manually creating global macro variables
Creating macro programs with parameters and macro statements
Learning objectives
Random number generation
Plotting with the SGPLOT procedure
Enhancing the plot
CORR, FREQ, and MEANS procedures
Selecting output to print and suppress
Manually creating global macro variables
Creating macro programs with parameters and macro statements
Skills covered
SASStatisticsPersonaData Science
Concepts
Introduction
- Welcome
Random Number Generation and Plotting
- The DO loop
- Random number generation
- Demo - The DO loop and random number generation
- Plotting with the SGPLOT procedure
- Demo - Creating standard R plots
- Enhancing the plot
- Demo - Enhancing the plot
- Multi-cell plotting procedures and statements
- Demo - Multi-cell plotting
Descriptive Procedures, Output Delivery System, and Macros
- The CORR and FREQ procedures
- The MEANS and UNIVARIATE procedures
- Demo - Ames home sales data exploration
- Selecting output to print and suppress
- Demo - Selecting output with ODS TRACE or the online documentation
- Saving results to new SAS data sets
- Demo - Creating data tables with ODS
- Creating global macro variables - Manually
- Creating global macro variables - Automating the process
- Demo - Creating and using macro variables
- Macro programming
- Creating macro programs with parameters
- Creating macro programs with macro statements - A business example
- Demo - A macro program to generate data, summary statistics, and plots
- Demo - A macro program for iterative processing