Alternative text for elementary statistics www.statsoft.com/textbook/stathome.html –Elementary Concepts –Basic Statistics.

Slides:



Advertisements
Similar presentations
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
Advertisements

MATLAB – A Computational Methods By Rohit Khokher Department of Computer Science, Sharda University, Greater Noida, India MATLAB – A Computational Methods.
Introduction to R - Functions, Packages Andrew Jaffe 10/18/10.
Statistical Methods Lynne Stokes Department of Statistical Science Lecture 7: Introduction to SAS Programming Language.
Introduction to Matlab
MATLAB – What is it? Computing environment / programming language Tool for manipulating matrices Many applications, you just need to get some numbers in.
 Statistics package  Graphics package  Programming language  Can be used to share/reproduce analyses  Many new packages being created - can be downloaded.
Introduction to GTECH 201 Session 13. What is R? Statistics package A GNU project based on the S language Statistical environment Graphics package Programming.
SHOU Haochang ( 寿昊畅 ) Department of Biostatistics, Johns Hopkins Bloomberg School of Public Health July 11th, 2011 Nanjing University, China *Thanks to.
R for Research Data Analysis using R Day1: Basic R Baburao Kamble University of Nebraska-Lincoln.
Introduction to R A. Di Bucchianico. Introduction to R2 Types of statistical software command-line software –requires knowledge of syntax of commands.
Lecture 2 LISAM. Statistical software.. LISAM What is LISAM? Social network for Creating personal pages Creating courses  Storing course materials (lectures,
How to Use the R Programming Language for Statistical Analyses Part I: An Introduction to R Jennifer Urbano Blackford, Ph.D. Department of Psychiatry Kennedy.
Statistical Software An introduction to Statistics Using R Instructed by Jinzhu Jia.
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
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.
Introduction to MATLAB adapted from Dr. Rolf Lakaemper.
Introduction to MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
An introduction to R: get familiar with R Guangxu Liu Bio7932.
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.
Hands-on Introduction to R. Outline R : A powerful Platform for Statistical Analysis Why bother learning R ? Data, data, data, I cannot make bricks without.
Data, graphics, and programming in R 28.1, 30.1, Daily:10:00-12:45 & 13:45-16:30 EXCEPT WED 4 th 9:00-11:45 & 12:45-15:30 Teacher: Anna Kuparinen.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
1 Experimental Statistics - week 4 Chapter 8: 1-factor ANOVA models Using SAS.
Intro to R R is a free version of S-plus R is a free version of S-plus Can be used interactively but script or syntax files are commonly used to record.
Introduction to to R Emily Kalah Gade University of Washington Credit to Kristin Siebel for development of much of this PowerPoint.
1 Lab of COMP 406 Teaching Assistant: Pei-Yuan Zhou Contact: Lab 1: 12 Sep., 2014 Introduction of Matlab (I)
A Brief Introduction to Matlab Laila Guessous Dept. of Mechanical Engineering Oakland University.
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.
Eng Ship Structures 1 Introduction to Matlab.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Introduction to R / sma / Bioconductor Statistics for Microarray Data Analysis The Fields Institute for Research in Mathematical Sciences May 25, 2002.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
R packages/libraries Data input/output Rachel Carroll Department of Public Health Sciences, MUSC Computing for Research I, Spring 2014.
Introduction to Programming in R Department of Statistical Sciences and Operations Research Computation Seminar Series Speaker: Edward Boone
Introduction to MATLAB adapted from Dr. Rolf Lakaemper.
An Introduction to R Statistical Computing AMS 597 Stony Brook University Spring 2009 By Tianyi Zhang.
Introduction to R Introductions What is R? RStudio Layout Summary Statistics Your First R Graph 17 September 2014 Sherubtse Training.
Performing statistical analyses using the Rshell processor Original material by Peter Li, University of Birmingham, UK Adapted by Norman.
Introduction to R Carol Bult The Jackson Laboratory Functional Genomics (BMB550) Spring 2011.
CIS 601 Fall 2003 Introduction to MATLAB Longin Jan Latecki Based on the lectures of Rolf Lakaemper and David Young.
1 Lecture 5 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
© 2015 by Wade Rogers Introduction to R Cytomics Workshop December, 2015.
PROGRAMMING IN R Introduction to R. In this session I will: Introduce you to the R program and windows Show how to install R Write basic programs in R.
R Workshop #2 Basic Data Analysis. What we did last week: Understand the basics of how R works Generated objects (vectors, matrices, etc.) Read in data.
R tutorial Stat 140 Linjuan Qian
R Roger Barlow HEP Computing seminar 21 st February 2008.
CIS 595 MATLAB First Impressions. MATLAB This introduction will give Some basic ideas Main advantages and drawbacks compared to other languages.
Prepared by volunteers of the Ann Arbor Chapter of the American Statistical Association, in cooperation with the Department of Statistics and the Center.
Chris Knight Beginners’ workshop.
Lecture 11 Introduction to R and Accessing USGS Data from Web Services Jeffery S. Horsburgh Hydroinformatics Fall 2013 This work was funded by National.
Pinellas County Schools
Introduction to R Chris Free. Introduction to R Free! Superior (if not comparable) to commercial alternatives Available on all platforms Not just for.
Introduction to Matlab
Programming in R Intro, data and programming structures
Performing statistical analyses using the Rshell processor
Sihua Peng, PhD Shanghai Ocean University
Lecture 25.
Introduction to MATLAB
Lab 1 Introductions to R Sean Potter.
Statistics 1: Elementary Statistics
Sihua Peng, PhD Shanghai Ocean University
STAT 4030 – Programming in R Introduction
Communication and Coding Theory Lab(CS491)
Basics of R, Ch Functions Help Managing your Objects
Simulation And Modeling
Introduction to Matlab
Using R for Data Analysis and Data Visualization
> Introduction to Nelson Rios, Tulane University
Presentation transcript:

Alternative text for elementary statistics –Elementary Concepts –Basic Statistics

Introduction to R Autumn 2007 Petter Mostad

What is R? A programming language for statistical data analysis called S developed at Bell Labs. Later extended to S+. R is a free, open source version of S/S+. Available from Under active cooperative development; versions change frequently. Very popular tool in statistics community: New methods often now implemented there.

Basics of R Command-driven language Data (and functions) stored as named objects Objects can be fairly simple (vectors, matrices) or more comples (assembled from other objects)

Vectors and matrices Calculations often done on vectors or matrices Elementwise operations Subsetting, indexing Logical indexing

Help and documentation Use ”An introduction to R” Some recommended sections: 1.1, , 2, , 5.8, 6, 7.1, 10.1, 12.1, 12.3 help(mean) help.search(” ”) help.start()

Organizing your computations R has a ”current directory” Your objects are contained in your ”current workspace”, which can be saved any time Keep separate projects in separate workspaces/directories Keep it tidy!

Graphical visualization A ”generic” function: plot() High level commands, like pairs, image, contour... Lower level commands, adding stuff: points(), lines(), text(), title(), legend()... plotting characters pch, colors col...

Functions Most of R consists of functions The arguments can either be input in the right order, or using argument names Use help(...) !

Functions related to basic statistics For every distribution, we may: –Compute the probability density function –Compute the cumulative density function –Simulate random values from the distribution –Compute the quantiles See for example help(rnorm) pnorm, pf, pt, pchisq, ….

Doing tests in R For example t.test(…) can be done in R Many other tests are readily implemented: prop.test(…), binom.test(…), chisq.test(…), cor.test(…) help(test) will not work; try help.search(”test”)

Doing ANOVA in R Considered in R to be a part of linear modelling Use, for example, anova(lm(Y ~ factor(X1))) anova(lm(Y ~ factor(X1) + factor(X2))) etc.

Writing your own functions Collecting commands into a function Arguments to function Returning result as a list Assignments within functions programming: conditional statements, loops (avoid them!) etc... fix( )

Import and export of data Useful functions: read.table, write.table Works with mixed-type data (numbers and text columns) Works well with tab-separated data (connection to Excel) scan()

R packages A package: collection of functions (and data) concerning special application Contributed from different sources/persons Can be downloaded from CRAN or BioConductor must be ”loaded” with library() search() help(package = graphics) Also: Documentation from help.start()