Advanced R Programming
- Start Date: October 17, 2017
- End Date: October 19, 2017
- Time: 8:30am-4:30pm
- City: Revelstoke BC
- Venue: Okanagan College - 1401 1 St W, Revelstoke, BC. Rm 102
- Instructor: Dr. Carl Schwarz
- Register soon!
In this course, we will take R to the next level from that seen in the basic Stat Refresher Course and/or the Introduction to R programming courses. This course will focus on more advanced features of R. It will use the basic statistical methods from the Stat Refresher courses.
Class Size: class size is limited to 20 people.
Bring: Laptop computer pre-loaded with software (see below)
Prerequisites: It is assumed that participants have a basic familiarity with R — this is NOT a course for beginners for R. For example, it will be assumed that you can read basic data using read.table() or read.csv() into a data frame; that you can compute basic statistics, e.g. using the mean() function, and have a basic understanding of plotting, e.g. using basic plot() command.
– Base R and RStudio (available for Mac, Linux, and Windoze- systems)
– Adobe Reader
– Microsoft Excel
– More details about software requirements will be emailed to each student a few weeks before the course commences
1. Quick review of basic R
- data frames, vs vectors vs. matrices. vs lists
- selecting rows/columns of objects
- more advanced functions, e.g. grep for forming subsets
- recodes for grouping or changing values
- dealing with dates and times
2. Better graphing via ggplot
- Basic qplot and ggplot commands
- More advanced features of ggplot
- Using maps and ggplot output; basic kriging for interpolations
- Saving ggplot graphics
3. Casting and melting
- Restructuring your data for plotting and group analyses
4. Basic model fitting and dealing with lists
- The basic ANOVA and regression models using the lm() function.
- List output and how to manipulate it
5. Functions – generalize your work
- how to write functions
- different data structures for input and output (e.g. data frames, lists, etc)
- passing data among functions; scoping rules;
- debugging your functions
- sourcing and function management
6. Subgroup processing
- the plyr package – processing for sub-groups of your data
7. Bootstraping/simulation studies
- how to find standard errors for non-standard cases
8. RMarkdown – reproducible research
Dr. Carl Schwarz, Department of Statistics and Actuarial Science, Simon Fraser University. Carl has taught many courses with CMI, and is back by popular request! Carl has just recently won the SSC Award for Impact of Applied and Collaborative Work 2017.
Preparation for the course
About 2 weeks before the course you will be sent a web link where you can download pre-reading, a course manual, a set of practice exercises to load on your computer before the class, and instructions on where and how to get the course software.
You will need to bring your own laptop pre-loaded with the required software and downloaded files.
Consider bringing along an external monitor and an external keyboard if you have a small laptop.
You will need to make your own hotel booking, and remember to ask for the rates we’ve arranged for people attending this course (see below).
** The course starts at 8:30 a.m. sharp, you will need to arrive before that so you can set up your computer.
Course registration includes catered refreshment breaks (2/day), students can bring their own lunch, order a bagged lunch through CMI (catered by La Baguette – very good quality and generous portions), or you can purchase your own lunch at a neighboring restaurant.
CMI members: $675*
Bagged lunch: $14
*You can purchase your CMI membership for 2017 at the same time as registering for this course via the link provided ($40)
Registration closes October 12th.
Where to Stay
We have set up a room-block at the Monashee Lodge, just one block away from the Okanagan College. Discounted room rates are available for $80/night plus tax. This includes a continental breakfast (hot breakfasts can be ordered at additional cost), and there is also a clean hot tub and infra-red sauna for your use. 250-814-2553. Please state that you are with “CMI” to receive the discounted rate.
Another option is to stay at the Gateway Inn where rooms are available at a 10% discount, rates starting at $69/night plus tax. Price includes a continental breakfast. The Gateway Inn is just across the street from Okanagan College. 250-837-2164. Please state that you are with “CMI” to receive the discounted rate.
Thank you to our host Okanagan College