R

This webpage was originally intended to go along with a class taught to faculty, postdocs, and graduate students at the Virginia Institute for Psychiatric and Behavioral Genetics (VIPBG) in 2007. Tim York, Eric Schmidt, and Matt Keller co-instructed the course. Here (http://psych-swiki.colorado.edu:8080/LearnR) is a full course I recently taught at CU Boulder, which contains more resources than below and which you can use to teach yourself statistical programming in R! I recommend using the material at the newer (CU) webpage if you’re really interested in learning R.

In the open-source spirit of R, if you happen by this page and are interested in learning the R computer language, feel free to download the powerpoints, scripts, and other helpful files - at this site or the CU site above. The scripts are written such that you should be able to learn the basics of the program on your own. All you need to do is download R here.

Why learn R? R is an open-source software programming language for data manipulation, simulation, statistics, and graphics. It has become the lingua franca among statisticians, and is increasingly being used for data analysis among researchers.

R Advantages:

o Fast and free.

o State of the art: Researchers provide their methods as R packages. SPSS, SPlus, SAS are years behind R!

o 2nd only to MATLAB for graphics.

o Mx, WinBugs, Bioconductor use the R language.

R Disadvantages:

o Not as user friendly as other programs

o State of the art: No one from up on high to tell you which methods are “safe” or “best.”

o No commercial support; figuring out things on your own can be frustrating.

o Easy to make mistakes and not know it.

_______________________________________________________________

A more thorough course I taught can be found here (http://psych-swiki.colorado.edu:8080/LearnR). Below is an abbreviated version.

Helpful R Links:

R Home Page (CRAN)
Great R Graphics & Stats Site 1
Great R Graphics Site 2
 

Additional Helpful Files:

R Reference Card
R Syntax Examples
Type I and Type III Sums of Squares in R (discussion from CRAN)
 

How to:

Install 64-bit R on a Mac
Use R from within Aquamacs
Install 64-bit Bioconductor
Deal with memory issues in R
 

First Class:

Intro to R Powerpoint
Class 1 Script with solutions
 

Second Class:

Intro to R Graphics Powerpoint
Class 2 Script
Saved Objects (RgraphExamples.RData)
 

Third Class:

Class 3 Script
Class 3 Data

 


 

[Matthew C Keller's Home Page] [Biosketch] [Vita] [Publications] [The K/M Lab] [Program Code] [R] [64 bit R on Mac] [Aquamacs] [Bioconductor] [Memory] [Courses] [Links]