R for SAS, SPSS and Stata Users

R is free and powerful software for data analysis and graphics. However, its flexible approach is so different from other software that it can be frustrating to learn. This 8-hour workshop introduces R in a way that takes advantage of what you already know. For many topics we will begin with add-on commands that work similarly to your current software. Then we will cover R’s built-in commands that provide simpler but more flexible output. We will also discuss aspects of R that are likely to trip you up. For example, many R functions let you specify which data set to use in a way that looks identical to SAS, but which differs in a way that is likely to lead you to perplexing error messages.

R--113

Most of our time will be spent working through examples that you may run simultaneously on your computer. However, the handouts include each step and its output, so feel free to just relax and take notes. Most examples come from the extensive data management examples in R for SAS and SPSS Users, R for Stata Users, and
http://r4stats.com
. That makes it easy to review what we did later with full explanations, or to learn more about a particular subject by extending an example which you have already seen.

After each 4-hour session you will receive a set of practice exercises for you to do on your own time, as well as solutions to the problems. The instructor is available via email to address these problems or any other topics in his workshops or books.

Prerequisites

Attendees should know how to program in SAS, SPSS or Stata and be familiar with basic statistical methods including linear regression and basic analysis of variance.

Learning Outcomes

When finished, you will be able to use R to import data, transform it, create publication quality graphics, perform commonly used statistical analyses and know how to generalize that knowledge to more advanced methods. You will also have an especially thorough understanding of how R compares to SAS, SPSS and Stata.

Presenter

Robert A. Muenchen is the creator of the web site
http://r4stats.com
and is the author of the books, R for SAS and SPSS Users, and, with Joseph Hilbe, R for Stata Users. An Accredited Professional Statistician™ with 30 years of experience, Bob is the Manager of Research Computing Support (formerly the Statistical Consulting Center) at the University of Tennessee. Bob has served on the advisory boards of SAS Institute, SPSS Inc., the Statistical Graphics Corporation and PC Week Magazine. His suggested improvements and/or programming code have been incorporated into SAS®, SPSS®, JMP®, STATGRAPHICS® and several R packages.

Computer requirements During this course we will use a combination of slides and hands-on work, running programs step by step to study their output. If you bring your laptop computer with a recent version of R and RStudio, you will be able to follow along helping you learn the software. If you instead prefer to simply watch the instructor step the programs on the projected screen, that is fine too. You can download R for free at:


http://www.r-project.org/

You can download and install RStudio for free at:


http://RStudio.org

Course Outline (Data management topics have been moved to a separate workshop)

  1. Introduction and statement of goals
  2. Overview of R
  3. Installing and maintaining R
  4. Programming Language Basics – including creating, subsetting and analyzing vectors (variables), factors (categorical variables), data frames (data sets), matrices, arrays and lists.
  5. Managing your files and workspace – R provides a complete environment that includes many commands for listing, printing, saving, deleting data as well as examining object structure.
  6. Controlling functions (procedures or commands) using arguments (options or parameters) or an object’s class; how to change class
  7. Data Acquisition – reading comma- and tab-delimited files, Excel, SAS, SPSS & Stata
  8. Data Transformations – modifying existing variables and creating new ones
  9. Selecting variables and observations – R offers many more ways to do selection
  10. Writing functions (macros)
  11. Graphics
    1. Traditional graphics (similar to old SAS and SPSS graphics) including bar, scatter, strop, box plots, histograms, plotting groups, adding embellishments and regression fits.
    2. Lattice graphics (similar to new SAS SG* and Stata graphics) – a brief overview
    3. The Grammar of Graphics approach using the ggplot2 package (similar to SPSS GPL) including: qplot vs. ggplot; bar charts, histograms, scatter, strip, multi-layered plots; group plots, adding embellishments and fit lines.
    4. Interactive graphics – a brief overview (similar to JMP, SAS/INSIGHT, SAS/IML Studio)
    5. Graphics resources
  12. Statistics
    1. Descriptive statistics done both the SAS/SPSS/Stata way and the R way
    2. Crosstabulation done both the SAS/SPSS/Stata way and the R way
    3. “By” or “split file” processing of groups
    4. Correcting p-values for the effects of multiple testing
    5. Correlation: Pearson, Spearman
    6. Linear regression
    7. Extractor functions (like Stata’s postestimation commands)
    8. t-test & Wilcoxon Mann-Whitney rank sum test
    9. Paired t-test & Wilcoxon signed-rank test
    10. Analysis of variance, Kruskal-Wallis & post hoc tests
  13. Getting publication-quality output into Word, LibreOffice, HTML and LaTeX
  14. Ways to run R
    1. Interactively
    2. Programs that include other programs
    3. Running R from within SAS and SPSS
    4. Running R as an adjunct to Stata
    5. Graphical User Interfaces: R Commander, JGR, Rattle, Excel
  15. Summary of topics learned

Here is a slide show of previous workshops.

7 Responses to R for SAS, SPSS and Stata Users

  1. Pingback: Why R is Hard to Learn | r4stats.com

  2. Amit B says:

    Hi Bob,
    I was wondering how the training will be held next week.
    Will the training be a WebEx and will it be recorded like SAS training so I can view it later for 20 business days.

    I appreciate your reply as it would help me in preparing for the training.

    Regards,

    Amit

  3. Pingback: Knoxville R Users Group Formed, Free Training Offered | r4stats.com

  4. Pingback: SAS, SPSS, Stata Users: Learn R from Home June 17 | r4stats.com

  5. Santiago Perez says:

    Same question as Amit, where is this being held or is there a webex?

  6. Bob Muenchen says:

    Hi Santiago,

    It’s being done via WebEx. If you register, Revolution Analytics will send you the login info and where to download the handouts, practice programs, data sets and exercises.

    Cheers,
    Bob

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s