This document provides code examples for performing basic statistical analyses in SAS and R. It covers reading data, descriptive statistics, correlation and covariance, analysis of variance (ANOVA), and regression. For reading data, it demonstrates how to import data from files or folders. For descriptive statistics, correlation, and ANOVA, it shows functions and packages for computing these in SAS and R. For regression, it shows how to conduct simple and multiple linear regression in each program.