Lecturer: Jonas Schöley (jschoeley@health.sdu.dk)
Please install the current versions of
- R (https://cran.r-project.org/) and
- Rstudio (https://www.rstudio.com/products/rstudio/download/).
- Mon Sep 11, 14-16: Basic R
- Lecture code
- Self study material
- Should you prefer a more technical introduction to the basics of the R language (maybe if you are familiar with other programming languages) then I suggest to read the "Foundations" chapter of Advanced R.
- Introduction to R Markdown
- Wed Sep 13, 10-12: Data structures
- Fri Sep 15, 10-12: Functions and control flow
- Mon Sep 18, 14-16: Data visualization
- Tue Sep 19, 14-16: Data transformation
- Wed Sep 20, 14-16: Optimization and model fitting
- Lecture code
- Self study material
- Cran task views are collections of R packages categorized by topic. The task views are a good place to get an overview of the packages available for a given problem domain.
- Thu Sep 21, 14-16: Probability distributions and simulation
- Fri Sep 22, 14-16: Matrix Algebra
-
Assignment 1 due Sunday, September 17.
-
Assignment 2 due Sunday, October 1.
Please email me the finished assignments (jschoeley@health.sdu.dk). For each assignment I would like you to send me at least 2 files:
- the source code (
.R
, or.Rmd
), and - a pdf with your code, your comments, your results and your answers to the questions in the assignment.
If you have downloaded data for the assignment please send me this data as well.
Of course you can and should take advantage of your peers when you're stuck. This does not mean to copy the solutions but instead to ask for help on specific problems. You can also send me a mail asking for advice. Make sure to attach your data and code to the email so I can have a look at what went wrong.
You get a pass if you hand in all of your assignments. There are 3 ways to get a high pass:
- Do you assignments very well, i.e. maybe do a bit more than I've asked for.
- Write down which problems you've encountered while working on the assignment and how you've solved them.
- Hand in some special assignment that I've given you (that is for those who already know R).