Using R for Statistical Instruction

Slides:



Advertisements
Similar presentations
EBooks and Audiobooks. This class will give you an overview of eBooks and electronic Audiobooks available from the Library. We will also explain the basic.
Advertisements

Managing Your Site – Lesson 61 Managing Your Site Lesson 6.
Process Monitoring is only the first step in improving process efficiency.
Microsoft Office Illustrated Fundamentals Unit C: Getting Started with Unit C: Getting Started with Microsoft Office 2010 Microsoft Office 2010.
Irakli Garibashvili Georgian Library Association
PRE-SCHOOL QUANT WORKSHOP II R THROUGH EXCEL. NEW YORK TIMES INFOGRAPHICS GALARY The Jobless Rate for People Like You Home Prices in Selected Cities For.
TRACK 2™ Version 5 The ultimate process management software.
STATISTICAL PACKAGE FOR AUGMENTED DESIGNS
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
TRACK 3™ The ultimate process management software.
WINKS 7 Tutorial 6 – Opening an Excel data file Permission granted for use for instruction and for personal use. © Alan C. Elliott, 2015.
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
E-Book Repository Solution By Tim Haynes. Contents What is an E-book Repository My Solution Components of My Solution Diagram of My Solution Threats and.
Introduction to. What is Office 365 Office 365 is the same Office you already know and use every day. Office 365 is powered by “the cloud” which is a.
Linux Operations and Administration
1 Working with MS SQL Server. 2 Objectives You will be able to Use Visual Studio for GUI based interactive access to a Microsoft SQL Server database.
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.
Warranty buyer beware. software manufacturers limit their liability for software problems by selling their software “as is”. can’t guarantee error free.
Arko Barman with modification by C.F. Eick COSC 4335 Data Mining Spring 2015.
1 Working with MS SQL Server Textbook Chapter 14.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
TIMES 3 Technological Integrations in Mathematical Environments and Studies Jacksonville State University 2010.
I❤RI❤R Kin Wong (Sam) Game Plan Intro R Import SPSS file Descriptive Statistics Inferential Statistics GraphsQ&A.
Outline Class Intros Overview of Course Example Research Project.
GeoGebra: Free Dynamic Software for Geometry and Beyond Shelley W. Question to ponder:
WRITING REPORTS Introduction Section 0 Lecture 1 Slide 1 Lecture 6 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate 3870 Fall 2015.
3.3 Systems of Inequalities
Analysis Introduction Data files, SPSS, and Survey Statistics.
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.
1 FREE SAS SOFTWARE. 2 FREE SOFTWARE Free SAS ® software. SAS STUDIO; An interactive, online community. Superior training and documentation. And the analytical.
How to Use R and Its Packages. About R Free software For statistical computing and graphics R homepage: We use R
Introduction to CADStat. CADStat and R R is a powerful and free statistical package [
With the support of the LPP programme of the European Union 1 This project has been funded with support from the European Commission. This publication.
Introduction to R Dr. Satish Nargundkar. What is R? R is a free software environment for statistical computing and graphics. It compiles and runs on a.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Professional Template for a 48x36 poster presentation
Cygwin: getting the setup tool
A quick guide to other statistical software
BDM-WEEK-8&9 USING MS EXCEL & POWER POINT for CREATING GRAPHS & CHARTS
Helping patrons get the most out of eLibraries Manitoba!
Warm-up Activity Titanpad
Data Tools: R and RStudio
Weebly Elements, Continued
An Eclipse Plugin for Creating Windows Graphical User Interfaces
People used to install software on their computers
A very brief introduction to R
Arko Barman COSC 6335 Data Mining Fall 2014
By Dr. Madhukar H. Dalvi Nagindas Khandwala college
Professional Template for a poster presentation
Introduction to R Programming with AzureML
Installing R and R Studio
Professional Template for a 48x36 poster presentation
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
Teaching and Learning with Technology
Professional Template for a 48x36 poster presentation
Networks Software.
Tivoli Common Reporting v1.2 Overview
Microsoft Virtual Academy
This is where R scripts will load
CSCI N207 Data Analysis Using Spreadsheet
Eviews Tutorial for Labor Economics Lei Lei
May 31-June 2, 2016, Missouri Botanical Garden
Power BI.
This is where R scripts will load
LUA 3D MIM 김현준.
Data analysis with R and the tidyverse
Microsoft Office Illustrated Fundamentals
An Eclipse Plugin for Creating Windows Graphical User Interfaces
Professional Template for a 80(width) x 100(height) cm2 poster presentation Your name and the names of the people who have contributed to this presentation.
Presentation transcript:

Using R for Statistical Instruction Getting Started By Buddy Bilbrey, Lander University jbilbrey@lander.edu

Advantages of R Open source (free) (2016) KD Nuggets survey stated that R is the top software among professionals Industry Professionals are using because of price and capabilities Extremely powerful (many different contributors) Stable on virtually any platform Performs more than statistics (data mining and other analytic functions) Gives students a skill that is extremely desirable

Disadvantages of R STEEP learning curve Uses typed commands instead of GUI Newer versions sometimes force upgrading the software No warranty or defined help available (must use the web) Solutions are difficult to find due to limited online examples (this gets better every day)

Finding and Installing the Software https://www.r-project.org/ Must choose a mirror site for downloading Must add each package individually Throwback to 90’s command line software

Downloading R

https://cran.r-project.org/mirrors.html All mirror sites have identical copies This prevents one server from becoming overloaded

Mirror Sites List by Country

From inside the R Software – select mirror sites for each new package installed

List of Mirror Sites by country

List of Packages Available for Installing

Some Available GUIs R-Commander (most common) Sciviews-K RKWard PMG Red-R R Analytic Flow

R-Commander (GUI) Must be installed separately as a package Very common commands included Does graphing including 3D graphics Incomplete Some commands need to ran in R on command line Other packages may need to be installed (qcc (quality control), DOE, etc.) Unavailable functions are greyed out automatically NOTE: It is difficult to go from a GUI to typing in commands on command line

Opening R-Commander (case sensitive) Type the following AFTER the Rcmdr package is installed in R > library(Rcmdr)

R-Commander Examples

Importing Data into Rcmdr Can import from clipboard Can import from files Can copy/paste from clipboard .csv files work best for importing entire file Excel files sometimes are difficult

Importing into Rcmdr with Clipboard or file Name the Dataset for later referencing Clipboard or .csv file

Reference Books for use with R instruction R for Business Analytics by A. Ohri (recommended for beginners) Business Analytics for Managers by Wolfgang Jank An Introduction to Statistical Learning (ISLR) – Free .pdf book (advanced Analytics) (www.StatLearning.com ) which takes you to -> (http://www- bcf.usc.edu/~gareth/ISL/ )

ISLR Online Book eBook .pdf download

ISLR Basic Commands 2.3.1 type in single column of data > x = c(1,6,2) # stores the three values in variable x > y = c(1,4,3) # stores the three values in variable y > x # print values stored in x [1] 1 6 2 > length(x) # number of values in x [1] 3

ISLR Basic Commands 2.3.1 (cont.’) > x=matrix (data=c(1,2,3,4) , nrow=2, ncol =2) # create a table of data > x [,1] [,2] [1,] 1 3 [2,] 2 4

ISLR Basic Commands 2.3.1 (cont.’) > sqrt(x) # take the square root and square values [,1] [,2] [1,] 1.00 1.73 [2,] 1.41 2.00 > x^2 [1,] 1 9 [2,] 4 16

Other Common Commands [Create a linear regression model* – store in variable model1] > priceData <- read.csv(file.choose()) # input the data with dialog > priceModel <- lm(Price~Qty, data = priceData) # build the regression model > summary(priceModel) # print the results Data came from “Business Analytics for Managers” by Wolfgang Jank.

Experiences with Teaching Statistics in R Small bite examples (one-sample t-test, two-sample t-test, regression, etc.) Students actually retain the commands well with practice Difficult to go backwards from GUI to command lines