An Introduction to R Statistical Computing AMS 597 Stony Brook University Spring 2009 By Tianyi Zhang.

Slides:



Advertisements
Similar presentations
An Introduction to spss & endnote
Advertisements

R Mohammed Wahaj. What is R R is a programming language which is geared towards using a statistical approach and graphics Statisticians and data miners.
ORACLE Lecture 1: Oracle 11g Introduction & Installation.
R for Research Data Analysis using R Day1: Basic R Baburao Kamble University of Nebraska-Lincoln.
MATLAB Extras Week 16 – 5/12/09 Kate Musgrave
INFORMATION TECHNOLOGY, THE INTERNET, AND YOU
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
Alternative text for elementary statistics –Elementary Concepts –Basic Statistics.
Microarray Analysis Jesse Mecham CS 601R. Microarray Analysis It all comes down to Experimental Design Experimental Design Preprocessing Preprocessing.
McGraw-Hill Technology Education © 2006 by the McGraw-Hill Companies, Inc. All rights reserved. 33 CHAPTER BASIC APPLICATION SOFTWARE.
Chapter 2 Introduction to Systems Architecture. Chapter goals Discuss the development of automated computing Describe the general capabilities of a computer.
Introduction to SAS Math 3200 Jan Jimin Ding.
What is R Muhammad Omer. What is R  R is the programing language software for statistical computing and data analysis  The R language is extensively.
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
COMPUTER SOFTWARE Chapter 3. Software & Hardware? Computer Instructions or data, anything that can be stored electronically is Software. Hardware is one.
Applied Bioinformatics Introduction to Linux and R Bing Zhang Department of Biomedical Informatics Vanderbilt University
TC2-Computer Literacy Mr. Sencer February 8, 2010.
What is R By: Wase Siddiqui. Introduction R is a programming language which is used for statistical computing and graphics. “R is a language and environment.
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
Basic R Programming for Life Science Undergraduate Students Introductory Workshop (Session 1) 1.
Computer Concepts – Illustrated 8 th edition Unit C: Computer Software.
1 An Introduction – UCF, Methods in Ecology, Fall 2008 An Introduction By Danny K. Hunt & Eric D. Stolen Getting Started with R (with speaker notes)
Quantitative Research in Education Sohee Kang Ph.D., lecturer Math and Statistics Learning Centre.
Introduction to MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
Data Visualization using R
Avalanche Internet Data Management System. Presentation plan 1. The problem to be solved 2. Description of the software needed 3. The solution 4. Avalanche.
STATISTICS Microsoft Excel “Frequency Distribution”
732A44 Programming in R.  Self-studies of the course book  2 Lectures (1 in the beginning, 1 in the end)  Labs (computer). Compulsory submission of.
Introduction to to R Emily Kalah Gade University of Washington Credit to Kristin Siebel for development of much of this PowerPoint.
HOW WEB SERVER WORKS? By- PUSHPENDU MONDAL RAJAT CHAUHAN RAHUL YADAV RANJIT MEENA RAHUL TYAGI.
Software Writer:-Rashedul Hasan Editor:- Jasim Uddin.
UEC 01 : Computer Skills & Programming Concepts I 1PUA – Computer Engineering Department – UEC01 – Dr. Mona Abou - Of Lecture 6: Applications Software.
Software Software consists of the instructions issued to the computer to perform specific tasks. –The software on a computer system refers to the programs.
1 UNIT 1: COMPUTER SOFTWARE Cite Examples of System Software.
Piotr Wolski Introduction to R. Topics What is R? Sample session How to install R? Minimum you have to know to work in R Data objects in R and how to.
An Introduction to R graphics Cody Chiuzan Division of Biostatistics and Epidemiology Computing for Research I, 2012.
1 The R Project for statistical computing Eric Fouh, Christopher Poirel CS 5604 Fall 2010.
_______________________________________________________________CMAQ Libraries and Utilities ___________________________________________________Community.
United Nations Economic Commission for Europe Statistical Division The Importance of Databases in the Dissemination Process Steven Vale, UNECE.
C OMPUTING E SSENTIALS Timothy J. O’Leary Linda I. O’Leary Presentations by: Fred Bounds.
Introduction to R Introductions What is R? RStudio Layout Summary Statistics Your First R Graph 17 September 2014 Sherubtse Training.
Introduction to R Carol Bult The Jackson Laboratory Functional Genomics (BMB550) Spring 2011.
© 2015 by Wade Rogers Introduction to R Cytomics Workshop December, 2015.
Software Rashedul Hasan. Software Instructions and associated data, stored in electronic format, that direct the computer to accomplish a task. Instructions.
R Roger Barlow HEP Computing seminar 21 st February 2008.
Ada, Scheme, R Emory Wingard. Ada History Department of Defense in search of high level language around Requirements drafted for the language.
Introduction to R Aedín Culhane
Maintaining and Updating Windows Server 2008 Lesson 8.
MIS2502: Data Analytics Introduction to Advanced Analytics and R.
Pinellas County Schools
CHAPTER 2 COMPUTER SOFTWARE. LEARNING OUTCOMES At the end of this class, students should be able to:  Explain the significance of software  Define and.
XP Creating Web Pages with Microsoft Office
Introduction to Data Manipulation, Analysis, and Visualization with R Patrick Grof-Tisza.
A quick guide to other statistical software
Fundamentals of Information Systems, Sixth Edition
R Brown-Bag Seminar 2.1 Topic: Introduction to R Presenter: Faith Musili ICRAF-Geoscience Lab.
R programming language
R Programming.
R Programming Language
Introduction to R.
Today’s Beginner Workshop
STAT 4030 – Programming in R Introduction
What's New in eCognition 9
R Statistical Language
Python for Data Analysis
Using R for Data Analysis and Data Visualization
What's New in eCognition 9
What's New in eCognition 9
Web Application Development Using PHP
Data Analytics Case Study
Presentation transcript:

An Introduction to R Statistical Computing AMS 597 Stony Brook University Spring 2009 By Tianyi Zhang

Outline What’s R? R Operating Environment  Help and Manuals  Download and install packages Basic Commands and Functions Import and Export Data Graphic Plot Samples

What’s R? Programming language and software environment for data manipulation, calculation and graphical display. Originally created by Ross Ihaka and Robert Gentleman at University of Auckland, and now developed by the R Development Core Team. Where to get R? Latest Release: R 2.8.1, on Dec 22, 2008

Why use R? IT IS FREE Pre-compiled binary versions are provided for Microsoft Windows, Mac OS X, and several other Linux/Unix-like operating systems Open source code available freely available on GNU General Public License For computationally-intensive tasks, C, C++ and Fortran code can be linked and called at run time An effective data handling and storage facility A suite of operators for calculations on arrays, in particular matrices A large, coherent, integrated collection of intermediate tools for data analysis Graphical facilities for data analysis and display either directly at the computer or on hardcopy

How to Study R Help Manual Google!!!

R Operating Environment

Start with R >help. start() >help(function name) >?function name Example >?lm >??object >help.search(“title”) Example >help.search(“test”) >??colsum

Download and Install Package All R functions and datasets are stored in packages. Only when a package is loaded are its contents available. This is down both for efficiency, and to aid package developers. To see which packages are installed at your site, issue the command >library(boot) Users connected to the Internet can use install.packages() and update.packages() to install and update packages. To see packages currently loaded, use search().

Download and Install Package

Vector and Assignment

Basic Commands

Data Frame

Import and Export Data

Control Statements

Graphic Plot Plot Types: Line Charts, Bar Charts, Histograms, Pie Charts, Dot Charts, etc. Format: >PLOT-TYPE(PLOT-DATA, DETAILS) PLOT-TYPE: plot, plot.xy, barplot, pie, dotchart, etc. PLOT-DATA: Data, Data$XXX, as.matrix(Data), etc. Details: axes, col, pch, lty, ylim, type, xlab, ylab, etc. For graphics plot:

Sample 1: T-test Generate two datasets X and Y; Do the Shapiro-Wilk normality test; Do the t-test  Alternative: two sided; less; greater;  Paired or not;  Confidence interval.

Sample 2: Linear Regression A comparison of GM monthly returns & SP500 monthly returns. GM and SP500 monthly return data during the period of Jan to Jun are taken. Plotted in R, they will be analyzed and compared. Data from:

Sample 2: Linear Regression

Sample 3: Neuron Data Study Heat diagramHierarchical Clustering

Sample 3: Neuron Data Study Partial Correlation Network among genes in PKJ and BAS cells

Question?