R Tutorial

Union College
Dept. of Mathematics
Bailey Hall
Schenectady, NY 12308

Cyclismo.org

R is an open source implementation of the S-Plus language. It is freely available and is licensed under the GPL. The language simplifies many statistical computations and can be a powerful tool.

We have a number of tutorials available. They are all introductory in nature and do not explore all of the options and full power of R. They do offer a gentle introduction to the language:

  1. Basic Input

    The basic commands of defining data and reading data files is given. This is a rudimentary look at two options available.
  2. Data Types

    The basic ways that R stores and interprets data are explored.
  3. Basic Operations

    Some of the basic operations that can be done on data are explored.
  4. Basic Probability

    The functions used with four basic probability distributions are explored, normal, t, binomial, and Chi-squared distributions.
  5. Plotting

    Some of the most basic plots are explored.
  6. Basic Linear Least Squares Regression

    This is a very basic introduction to linear least squares regression. It only goes over how to use the basic commands with very little analysis discussed.
  7. Confidence Intervals

    An introduction on how to calculate confidence intervals for normal distributions and t distributions.
  8. Calculating p-Values

    Several examples of how to calculate p-values are given.
  9. Caclulating the Power of a Test

    Several examples of how to calculate the power of a test are given.
  10. Working With Tables and Proportions

    The basic commands for the analysis of tables and proportions is given. The focus is on two-way tables.
  11. Case Study I

    Finding the solution to an extended homework problem.
  12. Case Study II

    A look at the results in the paper Trends in Serum Lipids and Lipoproteins of Adults, 1960-2002, Margaret D. Carroll, MSPH, David A. Lacher, MD, Paul D. Sorlie, PhD, James I. Cleeman, MD, David J. Gordon, MD, PhD, Michael Wolz, MS, Scott M. Grundy, MD, PhD, Clifford L. Johnson, MSPH, Journal of the American Medical Association, October 12, 2005--Vol 294, No. 14, pp: 1773-1781.

This tutorial written by Kelly Black. Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike2.5 License.