Post 0: Getting Started with R

[This article was first published on Markov Chain Monte Carlo in Item Response Models, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

R is an interpreted programming language that makes it easy to think about statistics instead of thinking about programming. Unlike other programming languages, R is commonly used by typing commands one-at-a-time in an interactive session.

RStudio is a program that facilitates this interactive use of R.

We will use both.

Getting R

R is free. It is distributed by a consortium that calls itself CRAN (Comprehensive R Archive Network). Many places throughout the world host CRAN content, so getting R is usually quite fast.

R’s homepage is here: https://www.r-project.org/. Feel free to poke around if you like.

To download R, pick the mirror that is closest to you from this list.  After selecting one of the mirrors, you’ll get a page that looks roughly like this:

r-download 

Pick your operating system and follow the instructions to download and install R.

Getting RStudio

RStudio is also free. It makes it easy to use R for both one-off projects and extended development.

Its homepage is http://rstudio.org/. Feel free to watch their promotional materials and poke around.

The RStudio download page will automatically detect your operating system and suggest the appropriate version. Download the suggested file and install it. All of the defaults will be fine.

RStudio should automatically find your R installation and get you ready to roll.

Getting used to RStudio and R

There are many resources for learning R. A particularly nice set of tutorials is from OpenIntro. Their labs page looks like this:

open intro

Lab 0 offers a concise introduction for a beginner. If you are unfamiliar with R, I suggest working through their first few tutorials.

To leave a comment for the author, please follow the link and comment on their blog: Markov Chain Monte Carlo in Item Response Models.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)