R For SAS Users
Learn R by mapping its functions to SAS procedures, then clean, explore, test and model the abalone dataset with dplyr and ggplot2.
R functions sit beside the SAS procedures they correspond to in every chapter, and the similarities and differences between the two languages are pointed out along the way. Working on one abalone dataset, you load data and add packages, create and recode variables, find and remove data errors, run correlations, t-tests and chi-square tests, and fit ANOVA and linear regression models that predict abalone age.
What You Will Achieve
- Load a dataset in R, add packages and look up help when a function is unfamiliar
- Spot illogical weights and measurements with ggplot2 plots and produce a cleaned dataset ready for modeling
- Check associations and group differences between variables and chart them with scatterplots and mosaic plots
- Fit and compare ANOVA and linear regression models to find the best predictors of abalone age
Program Overview
Getting Oriented in the R Environment
Covers help, data loading and packages, with a first look at the abalone data through dplyr summaries and ggplot2 charts.
- Getting help and loading datasets
- Adding functionality with packages
- Descriptive statistics with dplyr
- Histograms, boxplots, violin plots and scatterplots
R Data Objects and Data Cleaning
Builds and selects from R’s data objects, then creates, recodes and converts variables before checking the abalone data for errors.
- Composite object types and selecting elements
- Creating and recoding variables
- Object type conversion
- Checks on illogical weights and dimensions
Exploration, Statistical Tests and Models
Explores associations and group comparisons, stores results in lists, and fits models that predict abalone age from sex, size and weight.
- Summary statistics by group and function masking
- Correlations, t-tests, chi-square tests and mosaic plots
- Lists for saving and handling output
- ANOVA, linear regression and final model evaluation
Certificate Awarded (Paid)
Complete the course to earn it.
Job Outlook
These skills apply in statistics and data science work where data are cleaned, explored, modeled and presented in R.
Good for: SAS users who want to carry their usual workflow of cleaning, exploring, testing and modeling data over into R.
Keep in mind: As a gentle introduction to R, it keeps its statistics to correlations, t-tests, chi-square tests, ANOVA and linear regression.
Bottom line: The chapter-by-chapter mapping of R functions to SAS procedures gives SAS users a direct route into R, with coded examples to rerun on their own data.
Frequently Asked Questions
Which R packages carry the analysis?
The main packages are dplyr, used to summarize and handle the data, and ggplot2, used for the charts. Output from the Hmisc describe function also appears in the final chapter, where results are stored and handled as lists.
How is the abalone dataset used?
The exercises center on the abalone dataset. You inspect and clean it, explore relationships among its variables, and finish by building models that predict abalone age from sex, size and weight measurements.
How are the SAS comparisons presented?
Each chapter maps the R functions it teaches to the matching SAS procedures and highlights where the two languages work alike and where they differ, so familiar SAS steps serve as reference points for the R code.
Can I reuse the course code on my own data?
Yes. The coded examples follow one consistent workflow of quality checks, cleaning, exploring relationships, modeling and presenting results, and they are meant to serve as a template you can apply to a dataset of your own.
Please log in to report a problem with this page.


There are no reviews yet.