Genetics     Genetic Epidemiology     Population Genetics    Genome Biology    Epidemiology     Biostatistics     Glossary     Homepage 

 

 

Statistics and Graphics with R

 

19 April 2019

Istanbul University, Çapa Faculty of Medicine

Hulusi Behçet Library

Mehmet Tevfik DORAK (Kingston University London)

 

(Turkish version)

 

This is the website of a one-day course ran in Istanbul on 19 April 2019 on basic statistics and graphics with R. The course was designed to address the needs of absolute beginners to use R rather than for those who want to write their own code (developers). Anyone who has an interest in learning how to use R and/or statistics should benefit. The course teaches R and statistics at the same time without assuming any prior knowledge. It can be used like a self-paced course. All presentations and R scripts are provided below (including how to run R scripts in session 1). During the course, all participants started running R codes within the first 10 minutes without any difficulty. The aim is to bring the participants to a level to enable them to use any cookbook to do most statistical tests they will need and produce publication quality graphics. The course showed that even with a few hours of training, anybody can start using R without any knowledge of writing R codes.

 

 

(Please make an R directory on your hard drive (C:\R), download the files to that folder (with right click and Save Link As…)  and open from there)

 

Basic information about R and links for R users

 R Notes (PDF)     R Links (PDF)

 

Session 1

(R basics and syntax) 

PPT  PPTX  PDF  Script

Session 2

(Descriptive statistics and related graphics) 

PPT  PPTX  PDF  Script

Session 3

(Inferential statistics I: Categorical data analysis)  

PPT  PPTX  PDF  Script

Session 4

(Inferential statistics II: Correlation, t-test, ANOVA and regression) 

PPT  PPTX  PDF  Script

Session 5

(Beyond basic statistics: Statistical power; meta-analysis; survival analysis; ROC curve analysis)  

PPT  PPTX  PDF

Scripts for session 5: pwr.R   survival.R  epiR_meta.R   rmeta_cochrane.R   roc_cutoff.R

 

 All sessions (1-5) as a single file

PPTX (25Mb)  PDF (16Mb)

  

Scripts

installation1.R

demo1.R

 quantmod.R   contingency.R   tiff.R

s1.R    s2.R    s3.R    s4.R

merge_files.R

pwr.R

survival.R

epiR_meta.R   rmeta_cochrane.R

roc_cutoff.R

  

 

Online resources (cookbook style resources for R users)

 Quick-R: http://www.statmethods.net (Book: R in Action */(online liveBook))

Instant R: http://www.instantr.com (Books: InstantR (PDF) > Using R for Statistics *; GitHub)

Cookbook for R: http://www.cookbook-r.com (Book: R Graphics Cookbook)

R Cookbook: http://shop.oreilly.com/product/9780596809164.do (PDF)

How to in R: http://howtoinr.weebly.com

R Tutorial: http://www.r-tutor.com/elementary-statistics

Basic Statistical Analysis Using the R Statistical Package (Boston University): http://sphweb.bumc.bu.edu/otlt/MPH-Modules/BS/R/R-Manual

Learn R (Data Science Made Simple): http://www.datasciencemadesimple.com/learn-r-what-is-r

Kickstarting R: https://cran.r-project.org/doc/contrib/Lemon-kickstart

* I find these two books most useful for beginners

 

You may also use the following two books (open access):

Learn to Use R: Your Hands-on Guide (ComputerWorld)

Introduction to Statistical Data Analysis with R (Matthias Kohl) by Bookboon (2015)

 

 

  www.dorak.info/r

 

Mehmet Tevfik DORAK, MD, PhD

 

 

Genetics     Genetic Epidemiology     Population Genetics    Genome Biology    Epidemiology     Biostatistics     Glossary     Homepage