Block 1: Introduction to R

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Writing functions in R Some handy advice for creating your own functions.
Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get.
Introduction to the JDK Java for Computational Finance
© 2010 IBM Corporation IBM Experience Modeler - Theme Editor Installing Python Image Library Presenter’s Name - Presenter’s Title DD Month Year.
Training on R-language Mārtiņš Liberts Central Statistical Bureau of Latvia.
Marlene Galea.  The JDK (Java Development Kit)  An IDE (Integrated Development Environment) ◦ Different IDEs include:  JCreator  NetBeans  BlueJ.
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
Introduction to programming in MATLAB MATLAB can be thought of as an super-powerful graphing calculator Remember the TI-83 from calculus? With many more.
Chapter 1: Python Basics CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
A First Program Using C#
Introduction to NS2 -Network Simulator- -Prepared by Changyong Jung.
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.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Active-HDL Interfaces Debugging C Code Course 10.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
Introduction to Eclipse. What is Eclipse? An Integrated Development Environment Provides many features to ease C++ programming (and others, e.g. C/Java)
Outline Comparison of Excel and R R Coding Example – RStudio Environment – Getting Help – Enter Data – Calculate Mean – Basic Plots – Save a Coding Script.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 1: Introduction.
Introduction to R Introductions What is R? RStudio Layout Summary Statistics Your First R Graph 17 September 2014 Sherubtse Training.
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.
Introduction to Eclipse Programming with an Integrated Development Environment.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
Introduction to CADStat. CADStat and R R is a powerful and free statistical package [
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
MIS2502: Data Analytics Introduction to Advanced Analytics and R.
Debugging using By: Samuel Ashby. What is debugging?  A bug is an error in either a program or the hardware itself.  Debugging is first locating and.
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 Data Manipulation, Analysis, and Visualization with R Patrick Grof-Tisza.
Development Environment
R Brown-Bag Seminar 2.1 Topic: Introduction to R Presenter: Faith Musili ICRAF-Geoscience Lab.
Shiny for RStudio Exploring Web Mapping Technology
Lecture 2: Introduction to R
Introduction to R Samal Dharmarathna.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Getting Started with R.
Appendix B MathScript Basics
MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
R Programming.
Getting started in Eclipse
Quick Start Guide for Visual Studio 2010
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Lab 1 Introductions to R Sean Potter.
Introduction to R.
Social Media And Global Computing Introduction to Visual Studio
An introduction to data analysis using R
Welcome to E-Prime E-Prime refers to the Experimenter’s Prime (best) development studio for the creation of computerized behavioral research. E-Prime is.
Use of Mathematics using Technology (Maltlab)
Crash course in R – short introduction
Code is on the Website Outline Comparison of Excel and R
This is where R scripts will load
Creating Your First C Program Using Visual Studio 2010
Download and Installation of code::blocks
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Creating Your First C Program Using Visual Studio 2010
MIS2502: Data Analytics Introduction to R and RStudio
MIS2502: Data Analytics ICA #7 Introduction to R and RStudio - Recap
This is where R scripts will load
This is where R scripts will load
HOW TO TAKE MONTHLY REPORT OF ATTACH VEHICLE
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
A brief introduction to the nutrient tool-kit, getting R Studio to work and checking the data Martyn Kelly
Presentation transcript:

Block 1: Introduction to R Jacek Wallusch _________________________________ MBA: Introduction to Pricing Analytics Block 1: Introduction to R

Introduction ____________________________________________________________________________________________ What is R? The R project for Statistical Computing >> R is a language and environment for statistical computing and graphics. << The Structure >>R can be considered as a different implementation of S.<< >> The S language is often the vehicle of choice for research in statistical methodology, and R provides an Open Source route to participation in that activity. << The R Studio >>RStudio is an integrated development environment (IDE) for R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management. << MBA: ItPA 1 GNU, R, and the R Studio

Packages, Plot Viewer, Help R Studio ____________________________________________________________________________________________ The Interface TOOLS: packages The RUN button The SAVE buttons Write your code here The data NEW SCRIPT Console Packages, Plot Viewer, Help MBA: ItPA 1 The RUN button: alternatively, mark the line(s) and hit CTRL+R

example_data <- read.csv("C:/Users/Documents/PROJECTS/my_data.csv", Getting Started ____________________________________________________________________________________________ Importing Data Data File Format Example import a csv-file >>my_data.csv<< located in >>C:\Users\Documents\PROJECTS<<, and name the imported data file >>example_data<< example_data <- read.csv("C:/Users/Documents/PROJECTS/my_data.csv", header=TRUE, sep = ";") File Format Command CSV <- read.csv("data location", header=TRUE, sep = ";") TXT <- read.table("data location") MBA: ItPA 1 Warning: make sure the address is re-written

Getting Started ____________________________________________________________________________________________ Importing Data #------------------------------------------------------------- # IMPORT THE DATA in .csv-format: fx_data <- read.csv("C:/your-location/fx_data.csv", header=TRUE, sep = ";") Slash vs. Back-Slash Substitute \ with / MBA: ItPA 1 Warning: make sure the address is re-written

Getting Started ____________________________________________________________________________________________ Downloading Packages R Package >>Packages are collections of R functions, data, and compiled code in a well-defined format.<< Library >>The directory where packages are stored is called the library.<< MBA: ItPA 1 http://www.r-tutor.com/r-introduction/data-frame/data-import

Getting Started ____________________________________________________________________________________________ Downloading Packages Example Download package PLOTLY type the name of the package you would like to install select the package from the list click INSTALL MBA: ItPA 1

Descriptive Statistics ____________________________________________________________________________________________ Example MBA: ItPA 1 Skewness and Kurtosis: use also the psych-package

Time Series ____________________________________________________________________________________________ The ts-Object R and Time Series [1] Make sure the variable has a time series interpretation. [2] Make sure the vector of dates can be recognised by R [3] Apply the ‘ts’ format or zoo-package Dates [1] Daily series: preferred format saved in .csv-file: YYYY-MM-DD [2] For monthly and quarterly data use: as.Date ts-Object MBA: ItPA 1 zoo-object: an alternative time-series object