How to Use R and Its Packages. About R Free software For statistical computing and graphics R homepage: www.r-project.orgwww.r-project.org We use R 2.15.3.

Slides:



Advertisements
Similar presentations
Florida International University COP 4770 Introduction of Weka.
Advertisements

WHAT IS ELINK? Thermoflow, Inc.
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.
Writing functions in R Some handy advice for creating your own functions.
An Introduction to spss & endnote
Applied Econometrics Second edition
1 Using Excel for Statistics Office 2010 and 2013.
COMP 6703 Project A GUI Interface to the Gene Microarray Data Analysis Program SigMotif. Student: Ye Luo (u ) Clients: Professor Susan Wilson and.
Ann Arbor ASA ‘Up and Running’ Series: SPSS Prepared by volunteers of the Ann Arbor Chapter of the American Statistical Association, in cooperation with.
R for Research Data Analysis using R Day1: Basic R Baburao Kamble University of Nebraska-Lincoln.
Chapter 12b Testing for significance—the t-test Developing confidence intervals for estimates of β 1. Testing for significance—the f-test Using Excel’s.
Introduction to SPSS Short Courses Last created (Feb, 2008) Kentaka Aruga.
Introduction to SAS Math 3200 Jan Jimin Ding.
Decimaker: A statistical software using R, Microsoft.NET, R (D)COM Server and graphical libraries Julien Vanwinsberghe, ClinBAY, France Francois Vandenhende,
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
Toolbars Command Bar Customize Home Menu Bar Status Bar Section III- Toolbars.
Getting Started with Dreamweaver
ATM 315 Environmental Statistics Course Goto Follow the link and then choose the desktop application.
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.
Econometric Analysis Using Stata
Excel / 1 Electronic Spreadsheets What is an electronic spreadsheet or worksheet ? It is a Computer Software package which allows a user to Manipulate.
 Overview of SPSS  Interface  Getting Started  Managing Data  Descriptive Statistics  Basic Analysis  Additional Resources.
ALEXANDER C. LOPILATO R: Because the names of other stat programs don’t make sense so why should this one?
Carolina Environmental Program UNC Chapel Hill The Analysis Engine – A New Tool for Model Evaluation, Sensitivity and Uncertainty Analysis, and more… Alison.
SPSS Presented by Chabalala Chabalala Lebohang Kompi Balone Ndaba.
Arko Barman with modification by C.F. Eick COSC 4335 Data Mining Spring 2015.
© 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.
I❤RI❤R Kin Wong (Sam) Game Plan Intro R Import SPSS file Descriptive Statistics Inferential Statistics GraphsQ&A.
Introduction to SPSS. Object of the class About the windows in SPSS The basics of managing data files The basic analysis in SPSS.
Outline Comparison of Excel and R R Coding Example – RStudio Environment – Getting Help – Enter Data – Calculate Mean – Basic Plots – Save a Coding Script.
SW318 Social Work Statistics Slide 1 Get ready to work on practice problems 1. Create a directory and subdirectory on your computer named C:\StudentData\SW318_Spring_2004.
STAT 3130 Statistical Methods I Lecture 1 Introduction.
Tutorial on PC1D Mohit Mehta. Program Description PC1D solves the fully coupled non-linear equations for the quasi-1-d transport of electrons & holes.
BOĞAZİÇİ UNIVERSITY DEPARTMENT OF MANAGEMENT INFORMATION SYSTEMS MATLAB AS A DATA MINING ENVIRONMENT.
Parsing BLAST output. Output of a local BLAST search “less” program Full path to the BLAST output file.
COMPUTER SOFTWARE FORM 1. Learning Area Introduction to computer software Operating System (OS) Application Software Word Processing Software Presentation.
1 Econometrics (NA1031) Lecture 1 Introduction. 2 ”How much” type questions oBy how much a unit change in income affects consumption? oBy how much should.
TRUE or FALSE? PowerPoint is a presentation application software program.
1 Using Excel for Statistics in Gateway Cases Office 2007 & 2010.
Vitor Duarte Teodoro, April Organize a table for computations... Data for linear fitting These columns accept 100 pairs (x, y) Note: columns G to.
1 FREE SAS SOFTWARE. 2 FREE SOFTWARE Free SAS ® software. SAS STUDIO; An interactive, online community. Superior training and documentation. And the analytical.
Introduction to CADStat. CADStat and R R is a powerful and free statistical package [
Using SPSS Note: The use of another statistical package such as Minitab is similar to using SPSS.
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.
Arko Barman COSC 6335 Data Mining Fall  Free, open source statistical analysis software  Competitor to commercial softwares like MATLAB and SAS.
Getting Started with Dreamweaver
Statistical Analysis – Part 3
Statistics in SPSS Lecture 2
Reading a file R can read a wide variety of input formats Text,
Arko Barman COSC 6335 Data Mining Fall 2014
By Dr. Madhukar H. Dalvi Nagindas Khandwala college
Using R for Statistical Instruction
Systems Thinking: Systems modeling feedback quick start
DTIAtlasFiberAnalyzer Tutorial
Using SPSS Note: The use of another statistical package such as Minitab is similar to using SPSS.
DEPARTMENT OF COMPUTER SCIENCE
How to Install Quicken Software
Statistical Analysis – Part 3
Microsoft Video Editing Software
Introduction to R.
Chapter 12 Inference on the Least-squares Regression Line; ANOVA
Systems Thinking: Systems modeling quick start
Introduction to Computer Graphics
Code is on the Website Outline Comparison of Excel and R
Getting Started with Dreamweaver
CSCI N207 Data Analysis Using Spreadsheet
DOS and window operating system
Amos Introduction In this tutorial, you will be briefly introduced to the student version of the SEM software known as Amos. You should download the current.
Using SPSS Note: The use of another statistical package such as Minitab is similar to using SPSS.
Human-computer interaction
Presentation transcript:

How to Use R and Its Packages

About R Free software For statistical computing and graphics R homepage: We use R for windows – Current version: R for windows

First Things to Know R regards things as objects – Datasets and the results of a regression are objects All commands are functions Text command and case sensitivity Interactive mode and batch mode

Reading Data mydata=read.table(“filename.txt”, header=T) – Text file with a header above each column mydata=read.csv(“filename.txt”, header=T) – Excel csv file with a header above each column attach(mydata)

Packages We Need AER quantreg plm rqpd

Installation install.packages("fBasics",repo=" Or from the menu bar

Installation of rqpd First, install “quantreg”, “Formula” and “SparseM” install.packages(“rqpd",repos="

Descriptive Statistics Package: fBasics Function: basicStats(mydata)

Linear Model: OLS Output=lm(y~x1+x2+x3) summary(Output)

Testing a Linear Hypothesis Package: car (in AER) H0:Rβ=r Function: linearHypothesis(Output, hypothesis.matrix= R, rhs=r) Example: H0: β1=0 and β2=0 – R=rbind(c(0,1,0,0),c(0,0,1,0)) – r=c(0,0)

Testing a Restricted Model Function: anova(output of restricted, output of unrestricted)

Testing under Heteroskedasicity

Robust Standard Errors and Tests Packages: sandwich, lmtest (both in AER) Functions: – coeftest(output, vcov=vcovHC) – waldtest(outputr, outputur, vcov=vcovHC(outputur))