Introduksjon til R (English)

R er en omfattende og fleksibel programvare for dataanalyse og -visualisering. R er "open source" og gratis tilgjengelig fra nettet og fra programvarebibioteket ved NTNU. Tilleggspakker ("packages") finnes for de fleste fagområder som f.eks. forsøksplanlegging, epidemiologi og farmakokinetikk. R er i utgangspunktet er kommandostyrt og har nok en viss brukerterskel sammenliknet med "regneark"-baserte alternativer som SPSS. Som tillegg til kursene i medisinsk statistikk vil vi demonstrere R for interesserte.

Foreleser: Eirik Skogvoll, professor / overlege ved Klinikk for Anestesi og akuttmedisin, St. Olavs Hospital.

Forberedelse

Alle bør (må) ha installert R på egen laptop, lastes ned (gratis) fra www.r-project.org. R er også tilgjengelig på DMF sin terminalserver og -programvarebibliotek.

Vi vil følge Owen: The R Guide underveis, med unntak av 2.3 om matriseoperasjoner og 6.2 om Monte Carlo simulering. Aktuelle kommandoer gjengis som tekstfil her. Det er lurt å ha tilgang til filene passengers.txt og Ros.t.11.1.dat på egen maskin.

Øvrig litteratur:
An Introduction to R (finnes også på hjelpmenyen i R)
R Refcard
Peter Dalgaard. Introductory Statistics with R. Springer, 2nd edition, 2008. ISBN 978-0-387-79053-4.
Everitt, B. S. and T. Hothorn. A Handbook of Statistical Analyses Using R. Chapman & Hall/CRC, 2nd edition 2010 ISBN 978-1-4200-79333-3


Introduction to R

R is a comprehensive and flexible software for data analysis and visualisation, closely related to the commercial product S-Plus. R is open source, continuously developing, and freely available from the Internet. Add-on packages exist for most special tasks and subjects like experimental design, epidemiology and pharmacokinetics. Being mainly command driven, R may be less intuitive for unexperienced users compared to spreadsheet-like alternatives.
As a companion to the courses in medical statistics, we give a short presentation of R.

Lecturer: Eirik Skogvoll, Professor and Consultant, Dept. of Anaesthesiology and Emergency Medicine, St. Olav University Hospital

Preparation for the lecture

You should have R installed on your own laptop. The program may be downloaded (for free) from www.r-project.org. R is also available at the Faculty of Medicine from the Software Portal ("Programvarebiblioteket") and the terminal server.

We will follow Owen: The R Guide during the lecture, except 2.3 about matrix operations and 6.2 on Monte Carlo simulation. The relevant commands are given as a text file here. It is also a good idea also to be able to access the following files on your own laptop: passengers.txt and Ros.t.11.1.dat.

Further literature:
An Introduction to R (also available from the Help menu in R)
R Refcard
Peter Dalgaard. Introductory Statistics with R. Springer, 2nd edition, 2008. ISBN 978-0-387-79053-4.
Everitt, B. S. and T. Hothorn. A Handbook of Statistical Analyses Using R. Chapman & Hall/CRC, 2nd edition 2010 ISBN 978-1-4200-79333-3