Introduction to R for Time Series Analysis Lecture Notes 2
|
|
- Kathleen Shelton
- 6 years ago
- Views:
Transcription
1 Introduction to R for Time Series Analysis Lecture Notes OVERVIEW OF R R is a widely used environment for statistical analysis. The striking difference between R and most other statistical software is that it is free software and that it is maintained by scientists Since its introduction in 1996, the R project has gained many users and contributors, which continuously extend the capabilities of R by releasing add on (packages) that offer previously not available functions and methods or improve the existing ones. R offers almost unlimited possibilities for statistical data analysis. One disadvantage is that R is used within a command line interface, which imposes a slightly steeper learning curve than other software. 1.1 Downloading and Installing R R is distributed by the Comprehensive R Archive Network (CRAN) it is available from the url: After the installation, R can be started like any other application for Windows that is by double clicking on the corresponding icon. 1.2 R Packages R functionality is based around the concept of packages. A package is a collection of functions to carry out certain task. For example, the nls package does nonlinear regression, the ts package contains a variety of time-series functions, and so on. The base packages are automatically available with a default installation. Contributed packages, on the other hand, need to be installed individually. One can obtain these packages by following the download link on the R home page. By its very nature, R is a dynamic, evolving computing environment, and packages are continuing to be written at a rapid rate. Very often, the capabilities of two or more packages overlap. For example, both the tseries and ts packages provide procedures for fitting ARMA models. Some of the packages that may be of interest to time series analysis are listed below. Some of these are installed automatically when you install R, and the others can be downloaded and installed individually from the R web site. ts ---- Time-series functions, including ARIMA modelling, regression with ARMA errors, Box-Pierce and Ljung-Box tests, ACF, PACF, CCF, spectral density estimation, Phillips-Perron unit root test, tseries ---- More time series functions, including ARMA modelling, BDS test, Jarque-Bera test, ADF test for a unit root, KPSS test for stationarity, runs tests tests for nonlinearity. Other time series packages includes MASS, timedate, timeseries, fbasics, fseries, urca, funitroots, forecast, stats, uroot etc. 1
2 1.3 Useful Web sites There is a growing number of web sites dedicated to providing information about R and code to be used with R. Some of the main sites are listed here. There are also manuals, other links, and facilities for joining various R mailing lists. Three R mailing lists are archived here. This site provides a large and excellent collection of R tips. This is a compilation of R resources on the web. 2.0 GETTING STARTED IN R 2.1 Starting R When R starts you should see a window with the following text (the text may differ slightly depending on the version you are using): Version ( ), ISBN R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for a HTML browser interface to help. Type 'q()' to quit R. > The symbol '> ' appears in red, and is called the prompt; it indicates that R is waiting for you to type a command. If a command is too long to _t on a line a '+' is used to indicate that the command is continued from the previous line. All commands that you type in appear in red, and R output appears in blue. In the code examples that follow, you do not need to type the prompt '> '. 2.2 Entering Commands The easiest way of using R is to enter commands directly in this window. For example, try typing 2+2 at the command prompt and pressing enter. You should see the output: [1] 4 The [1] indicates that the answer is a vector of length one; we will return to this later. You can use the cursor keys to edit the command line as normal. Use the up and down cursor keys to scroll backward and forward through your previous commands; this can save you a lot of typing. The main window is called the command window. Other windows you may come across are the command history window and graphics windows. 2
3 2.3 Command History Rather than scrolling through a long list of previous commands using the cursor keys, R provides another way of retrieving previous commands. Type history() and a new window will appear listing the last 25 commands and you can copy and paste the command or commands you want. To retrieve more previous commands, for example the last 100, use history(100). 2.4 Getting Help R provides two types of help, both available through the Help menu. The easiest to use is the Html help; select Help! R language (html). This displays help in Internet Explorer just like a web page. The main page has several categories. 'An Introduction to R' provides basic help similar to this document. 'Search Engine & Keywords' allows you to search for different commands by keyword, or sorted into topics. 2.5 Quitting To close R, use the command > q() or choose Exit from the File menu. You will be asked if you wish to save the workspace; you should answer yes to this if you want to keep any data you have created. 3.0 COMMANDS AND OBJECTS R is an object-oriented language. This means that every piece of information is a type of object, for example data, vectors and results of analysis, and each object has a name. The user can perform actions on these objects via functions. Some functions behave differently depending on the type of object. Although this sounds complicated, in practice it makes R very easy to use. Most of the time you don't need to know or understand how this works. 3.1 Simple Arithmetic An expression typed at the prompt is evaluated and the result printed. You can use simple arithmetic: > # addition [1] 6 > 3 * # multiplication is done first [1] 14 > 1 + 3/2 # so is division [1] 2.5 > (1 + 3)/2 # Use brackets to change the order [1] 2 3
4 > 4^2 # use ^ for power [1] 16 The hash # in the commands above simply means a comment; R ignores everything after the hash. This allows us to insert comments to explain the code; this is particularly useful in a long and complicated analysis. 3.2 Simple Numeric Functions More complicated mathematical expressions can be calculated using functions. These have a name and an argument. For example, the function to calculate a square root has the name sqrt(). The argument is the value we want to find the square root of; to call the function, place the argument inside the bracket. So, to find the square root of 2, the argument is 2, so we type: > sqrt(2) [1] Similarly, > log( ) # log of pi [1] > log(pi) # pi can be used as a given constant [1] An example of commonly used mathematical functions is given below. abs() Absolute value (without +/-) sqrt() square root log() natural logarithm exp() exponential sin(), asin() sin and sin -1 cos(), acos() cos and cos -1 tan(), atan() tan and tan Variables Variables are called objects in R. You can assign a value to an object using "=" or the assignment operator <- (a 'less than' sign followed by a minus sign); the two are interchangeable. > x <- 5 From now on you can use x in place of the number 5: > x + 2 [1] 7 > sqrt(x) 4
5 [1] > y = sqrt(x) Typing the name of an object prints the value of it to screen. > y [1] DATA PREPARATION AND IMPORT IN R Importing data into R can be carried out in various ways to name a few, R offers means for importing ASCII and binary data, data from other applications or even for database connections. Since a common denominator for data analysis seem to be spreadsheet applications like Microsoft Excel. Let s assume we have the following dataset sales as a spreadsheet in Excel. (The dataset can be downloaded from course homepage). The spreadsheet contains sales data for Ogonos Venture from January 1990 to May A convenient way of preparing the data is to clean up the table within Excel, and save it as a text file so that only the data itself and one row containing the column names remain. Once the data has this form, it can be exported as a txt file, e.g. to C:/sales.txt. After conversion to a txt file, the data can be loaded into R. In our case, the sales dataset is imported by typing sales <- read.table( C:/sales.txt, header=t) into the R console. The right hand side, read.table( ), is the R command, which reads the txt file (sales.txt). Note, that paths use slashes / instead of backslashes. Further options within this command include header, which specify if the dataset has the first row containing column names (header=t). In case one does not have a naming row, one would use header=f instead. Having read the data into a data table, you then attach the data object with the command attach(data). This allows individual variables within the data set to be accessed directly. 4.1 Importing other Data Formats The foreign package allows you to read data created by different popular programs. To load it, simply type library(foreign) from within R. Supported formats include read.dta - Read Stata binary files read.mtp - Read a Minitab Portable Worksheet read.spss - Read an SPSS data file read.xport - Read a SAS XPORT format library read.s - Read an S-PLUS binary file 5
6 5.0 TIME SERIES FUNCTIONS The best way to see how R works is to look at some code and examples for a number of popular time series methods. That is what we do in this section. We will use data sets included with the contributed packages. The basic function in R that defines time series is ts(). It has as its default frequency, frequency=1. The starting date is by default year one; start=1. The following simple example creates a time series with frequency 1 (yearly data) of the first 10 positive integers, where we have written out the default values: ts(1:10, start = 1, frequency = 1) Time Series: Start = 1 End = 10 Frequency = 1 [1] ts(1:10, start = 1998, frequency = 4) Qtr1 Qtr2 Qtr3 Qtr ts(1:36, start = 1998, frequency = 12) Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec The main point with the function ts() is that it defines a time series object which consists of the data and a time line (including frequency). 5.1 Creating Time Series Objects with ts() The default of the function ts() is ts(x, start=1,frequency=1), where x can be a vector, a matrix or a data frame. In order to create a time series object, we use the inbuilt data set (where the first column is redundant) and were the starting date i January 1980 we use the following redefinition: data(bjsales) > data1 <- ts(bjsales, start = c(1980, 1), frequency = 12) 6
7 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec The argument start=c(1980,1) specifies the starting date as the date of the first observation in Since frequency=12 defines data as monthly, the first observation in 1980 is January The resulting object is a time series object. The ts() function has two clones: is.ts() which checks whether an object is a time series object and as.ts() which coerces an object to be a time series object: > is.ts(data1) [1] TRUE data2<-c(1:150) > is.ts(data2) [1] FALSE > is.ts(as.ts(data2)) [1] TRUE Note data2 is not a time series object to R even if it contains information about the dates of the observation. To R these dates are just factors. Note finally that even if data2 is a time series object, a part of this object selected through indexing loose these properties: > data2[7:18] > is.ts(data2[7:18]) [1] FALSE i.e., the latter being an attempt to access data from July 1980 to June Well, we do but the resulting object does not inherit the relevant time series properties. We will have to use other methods to consider subsets of time series objects. 7
8 5.2 Extracting Attributes from Time Series Objects There are several commands that can extract different attributes from a time series object. Of course one can extract the time line (i.e., the dates of the observations): The frequency, start and end dates of a time series object can be extracted: > frequency(data1) [1] 12 > start(data1) [1] > end (data1) [1] Selecting Subsets of Time Series Objects We previously noted that although data1 may be a time series object, say, data1[221] is not. So how can we define subsets of time series objects? This is done with the function window(). The function takes start and end as arguments. Say we want to extract the period July 1987 to June 1989 from data1: > window(data1, start = c(1987, 7), end = c(1988, 6)) Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Lags and Differences In time series analysis observations from different dates, say preceding observation t 1 y t from date t and the y from date t-1, are often used in the same model. In terms of terminology and mathematical notation y t 1 one usually call the (one period) lag of y t. Sometimes a lag operator L is introduced, such that Ly t = y t 1. For longer lags, say lag n, n one write L y = y. In R lags are created by the function lag(y, k=1), where the default t t n 1 k=1 implies a lead. Therefore, note that the default value is equivalent to L y t = y t+ 1! To get Ly t = y t 1 we must write lag(y, k=-1). Consider the following example which implements yt and Ly t = y t 1 : > ts(1:5) Time Series: Start = 1 End = 5 Frequency = 1 [1]
9 > lag(ts(1:5), k = -1) Time Series: Start = 2 End = 6 Frequency = 1 [1] In ts(1:5) the fifth observation with value 5 has date 5. On the other hand, in lag(ts(1:5),k=-1 the fifth observation with value 5 has date 6. Therefore, only the time index is changed! The vector of observations is unaffected, which we see if we pick (say) the third observation of the time series and its lag: > ts(1:5)[3] [1] 3 > lag(ts(1:5), k = -1)[3] [1] 3 This means that one has to careful using a time series and its lag in the same regression. R also has a function which directly defines differences between variables of different dates. This is the function diff(y, lag=1,difference=1), with default arguments. Here the option lag has its intuitive meaning. The default values give the equivalent to y-lag(y, k=- 1): > ts(1:5) - lag(ts(1:5), k = -1) Time Series: Start = 2 End = 5 Frequency = 1 [1] > diff(ts(1:5), lag = 1, difference = 1) Time Series: Start = 2 End = 5 Frequency = 1 [1] This means that diff(y, lag=1, difference=1) is exactly equivalent to the general difference operator, which is defined as y t = ( 1 L) yt = yt yt 1. Also for seasonal differencing in monthly time series we have > diff(airpassengers, lag=12) or > AirPassengers - lag(airpassengers, k=-12). 9
10 5.4 Aggregation of Time Series Data Sometimes data are available as high frequency data but what you need is low frequency data. Say, you have monthly data but need quarterly or yearly data. The function aggregate() has a method for time series objects so that one can use aggregate(x, nfrequency = 1, FUN = sum,...), where x is a time series object. The function splits x in blocks of length frequency(x)/nfrequency, where nfrequency is the frequency of the aggregated data (which must be lower than the frequency of x and which is 1 (yearly data) by default). The function specified by the argument FUN is then applied to each block of data (be default sum). For other arguments see? aggregate. The default function sum may be suitable for flow data as (for example) the data set AirPassengers, which records the total number of international air passengers per month. Say we want to aggregate this data to quarterly data > data(airpassengers) > AirPassengers Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec > (AirPassengers.Q <- aggregate(airpassengers, nfrequency = 4)) Qtr1 Qtr2 Qtr3 Qtr Aggregation will lead to quarters, but quarters consisting of February - April, May - July, August - October and November - January. The last two observations in the data set 10
11 AirPassengers.N, November and December 1960, do not constitute a full quarter and are therefore dismissed. If data are flows the default function sum is appropriate, but one may also have data in levels. Then (say) mean is an alternative in aggregation. The data set nottem contains monthly average air temperatures at Nottingham Castle in degrees Fahrenheit for the period Say we want to construct quarterly averages: data(nottem) > nottem Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec > nottem.q <- aggregate(nottem, nfrequency = 4, FUN = mean) Qtr1 Qtr2 Qtr3 Qtr
12 Descriptive Time Series Analysis In order to illustrate some time series ideas we will use the inbuilt data in R and it is called AirPassengers. This data contains the monthly numbers of airline passengers from 1949 to The function ts.plot(...) will generate a time series plot. Below we plot the AirPassengers series and add colour as well as heading of the series. > ts.plot(airpassengers, main="airpassengers", col="red") Next we plot the autocorrelation and partial autocorrelation function of the series. The function to generate the ACF and PACF in R is acf(...) and pacf( ). This functions returns an object of mode list and (unless we alter the default setting) plots the ACF and PACF. par(mfcol=c(2,1)) > acf(airpassengers) > pacf(airpassengers) par(mfcol=c(2,1)) acf(as.vector(airpassengers)) pacf(as.vector(airpassengers)) 12
13 The function to used to decompose time series in R is decompose(...). This function returns an object of mode list and (unless we alter the default setting) decompose time series into various components. The default is set to additive but it can be change to multiplicative if wish. >plot(decompose(airpassengers, type= multiplicative )) or > plot(decompose(airpassengers, type= additive )) 13
14 14
The Very Basics of the R Interpreter
Chapter 2 The Very Basics of the R Interpreter OK, the computer is fired up. We have R installed. It is time to get started. 1. Start R by double-clicking on the R desktop icon. 2. Alternatively, open
More informationINFORMATION TECHNOLOGY SPREADSHEETS. Part 1
INFORMATION TECHNOLOGY SPREADSHEETS Part 1 Page: 1 Created by John Martin Exercise Built-In Lists 1. Start Excel Spreadsheet 2. In cell B1 enter Mon 3. In cell C1 enter Tue 4. Select cell C1 5. At the
More informationBasic time series with R
Basic time series with R version 0.03, 15 January 2012 Georgi N. Boshnakov 1 Introduction These notes show how to do some basic time series computations with R. If you are taking my time series course,
More informationA Tutorial for Excel 2002 for Windows
INFORMATION SYSTEMS SERVICES Writing Formulae with Microsoft Excel 2002 A Tutorial for Excel 2002 for Windows AUTHOR: Information Systems Services DATE: August 2004 EDITION: 2.0 TUT 47 UNIVERSITY OF LEEDS
More informationConditional Formatting
Microsoft Excel 2013: Part 5 Conditional Formatting, Viewing, Sorting, Filtering Data, Tables and Creating Custom Lists Conditional Formatting This command can give you a visual analysis of your raw data
More informationDr Richard Greenaway
SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 2 Basic MATLAB Operation Dr Richard Greenaway 2 Basic MATLAB Operation 2.1 Overview 2.1.1 The Command Line In this Workshop you will learn how
More informationDATE OF BIRTH SORTING (DBSORT)
DATE OF BIRTH SORTING (DBSORT) Release 3.1 December 1997 - ii - DBSORT Table of Contents 1 Changes Since Last Release... 1 2 Purpose... 3 3 Limitations... 5 3.1 Command Line Parameters... 5 4 Input...
More informationInterim Report Technical Support for Integrated Library Systems Comparison of Open Source and Proprietary Software
Interim Report Technical Support for Integrated Library Systems Comparison of Open Source and Proprietary Software Vandana Singh Assistant Professor, School of Information Science, University of Tennessee,
More informationModule 1: Introduction RStudio
Module 1: Introduction RStudio Contents Page(s) Installing R and RStudio Software for Social Network Analysis 1-2 Introduction to R Language/ Syntax 3 Welcome to RStudio 4-14 A. The 4 Panes 5 B. Calculator
More informationExcel Functions & Tables
Excel Functions & Tables SPRING 2016 Spring 2016 CS130 - EXCEL FUNCTIONS & TABLES 1 Review of Functions Quick Mathematics Review As it turns out, some of the most important mathematics for this course
More informationGetting Started with R
Getting Started with R STAT 133 Gaston Sanchez Department of Statistics, UC Berkeley gastonsanchez.com github.com/gastonstat/stat133 Course web: gastonsanchez.com/stat133 Tool Some of you may have used
More informationVariable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3.
MATLAB Introduction Accessing Matlab... Matlab Interface... The Basics... 2 Variable Definition and Statement Suppression... 2 Keyboard Shortcuts... More Common Functions... 4 Vectors and Matrices... 4
More informationENGR Fall Exam 1 PRACTICE EXAM
ENGR 13100 Fall 2012 Exam 1 PRACTICE EXAM INSTRUCTIONS: Duration: 60 minutes Keep your eyes on your own work! Keep your work covered at all times! 1. Each student is responsible for following directions.
More informationECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu
ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu 0. What is MATLAB? 1 MATLAB stands for matrix laboratory and is one of the most popular software for numerical computation. MATLAB s basic
More informationNMOSE GPCD CALCULATOR
NMOSE CALCULATOR It should be noted that all the recorded data should be from actual metered results and should not include any estimates. Gallons per Capita - v2.4 Beta Release Date: Mar, 16, 29 This
More informationUndergraduate Admission File
Undergraduate Admission File June 13, 2007 Information Resources and Communications Office of the President University of California Overview Population The Undergraduate Admission File contains data on
More informationSand Pit Utilization
Sand Pit Utilization A construction company obtains sand, fine gravel, and coarse gravel from three different sand pits. The pits have different average compositions for the three types of raw materials
More informationSTAT 571A Advanced Statistical Regression Analysis. Introduction to R NOTES
STAT 571A Advanced Statistical Regression Analysis Introduction to R NOTES 2015 University of Arizona Statistics GIDP. All rights reserved, except where previous rights exist. No part of this material
More informationChapter 1 Introduction to using R with Mind on Statistics
Chapter 1 Introduction to using R with Mind on Statistics Manual overview The purpose of this manual is to help you learn how to use the free R software to perform the graphs, simulations, and data analyses
More informationExcel R Tips. is used for multiplication. + is used for addition. is used for subtraction. / is used for division
Excel R Tips EXCEL TIP 1: INPUTTING FORMULAS To input a formula in Excel, click on the cell you want to place your formula in, and begin your formula with an equals sign (=). There are several functions
More informationMonthly SEO Report. Example Client 16 November 2012 Scott Lawson. Date. Prepared by
Date Monthly SEO Report Prepared by Example Client 16 November 212 Scott Lawson Contents Thanks for using TrackPal s automated SEO and Analytics reporting template. Below is a brief explanation of the
More informationCSSS 512: Lab 1. Logistics & R Refresher
CSSS 512: Lab 1 Logistics & R Refresher 2018-3-30 Agenda 1. Logistics Labs, Office Hours, Homeworks Goals and Expectations R, R Studio, R Markdown, L ATEX 2. Time Series Data in R Unemployment in Maine
More informationStream Depletion Factor Model SDF View
Stream Depletion Factor Model SDF View User Manual - Version 1.2 Developed for the South Platte Advisory Committee by the Integrated Decision Support Group (IDS) at Colorado State University User Manual
More informationIntroduction to Engineering gii
25.108 Introduction to Engineering gii Dr. Jay Weitzen Lecture Notes I: Introduction to Matlab from Gilat Book MATLAB - Lecture # 1 Starting with MATLAB / Chapter 1 Topics Covered: 1. Introduction. 2.
More informationIntellicus Enterprise Reporting and BI Platform
Designing Adhoc Reports Intellicus Enterprise Reporting and BI Platform Intellicus Technologies info@intellicus.com www.intellicus.com Designing Adhoc Reports i Copyright 2012 Intellicus Technologies This
More informationSYS 6021 Linear Statistical Models
SYS 6021 Linear Statistical Models Project 2 Spam Filters Jinghe Zhang Summary The spambase data and time indexed counts of spams and hams are studied to develop accurate spam filters. Static models are
More informationMATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras
MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras Module No. #01 Lecture No. #1.1 Introduction to MATLAB programming
More informationCSE/Math 485 Matlab Tutorial and Demo
CSE/Math 485 Matlab Tutorial and Demo Some Tutorial Information on MATLAB Matrices are the main data element. They can be introduced in the following four ways. 1. As an explicit list of elements. 2. Generated
More informationCS Programming I: Arrays
CS 200 - Programming I: Arrays Marc Renault Department of Computer Sciences University of Wisconsin Madison Fall 2017 TopHat Sec 3 (PM) Join Code: 719946 TopHat Sec 4 (AM) Join Code: 891624 Array Basics
More informationIMPROVING Sepsis SURVIVAL. Data Portal User Manual version 2.0
IMPROVING Sepsis SURVIVAL Data Portal User Manual version 2.0 1 Table of Contents Data Portal User Accounts... 3 Logging into the Data Portal... 4 Outcome Data Entry... 5 Outcome Data Due Dates... 5 View
More informationCSE 341 Section Handout #6 Cheat Sheet
Cheat Sheet Types numbers: integers (3, 802), reals (3.4), rationals (3/4), complex (2+3.4i) symbols: x, y, hello, r2d2 booleans: #t, #f strings: "hello", "how are you?" lists: (list 3 4 5) (list 98.5
More informationContents. 1. Managing Seed Plan Spreadsheet
By Peter K. Mulwa Contents 1. Managing Seed Plan Spreadsheet Seed Enterprise Management Institute (SEMIs) Managing Seed Plan Spreadsheet Using Microsoft Excel 2010 3 Definition of Terms Spreadsheet: A
More informationAdding records Pasting records Deleting records Sorting records Filtering records Inserting and deleting columns Calculated columns Working with the
Show All About spreadsheets You can use a spreadsheet to enter and calculate data. A spreadsheet consists of columns and rows of cells. You can enter data directly into the cells of the spreadsheet and
More informationKenora Public Library. Computer Training. Introduction to Excel
Kenora Public Library Computer Training Introduction to Excel Page 2 Introduction: Spreadsheet programs allow users to develop a number of documents that can be used to store data, perform calculations,
More informationAIMMS Function Reference - Date Time Related Identifiers
AIMMS Function Reference - Date Time Related Identifiers This file contains only one chapter of the book. For a free download of the complete book in pdf format, please visit www.aimms.com Aimms 3.13 Date-Time
More informationMicrosoft Excel 2013 Series and Custom Lists (Level 3)
IT Training Microsoft Excel 2013 Series and Custom Lists (Level 3) Contents Introduction...1 Extending a Single Cell...1 Built-in Data Series...2 Extending Two Cells...2 Extending Multiple Cells...3 Linear
More informationIntroduction to R. base -> R win32.exe (this will change depending on the latest version)
Dr Raffaella Calabrese, Essex Business School 1. GETTING STARTED Introduction to R R is a powerful environment for statistical computing which runs on several platforms. R is available free of charge.
More informationSAS Publishing SAS. Forecast Studio 1.4. User s Guide
SAS Publishing SAS User s Guide Forecast Studio 1.4 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2006. SAS Forecast Studio 1.4: User s Guide. Cary, NC: SAS Institute
More informationRegression III: Advanced Methods
Lecture 2: Software Introduction Regression III: Advanced Methods William G. Jacoby Department of Political Science Michigan State University jacoby@msu.edu Getting Started with R What is R? A tiny R session
More informationMulti-part functionality in PINES
Monographic parts in PINES In order to allow holds on specific volumes in Evergreen, PINES will implement Monographic parts functionality for print titles. This functionality links volumes in a multi-volume
More informationComputer Programming in MATLAB
Computer Programming in MATLAB Prof. Dr. İrfan KAYMAZ Atatürk University Engineering Faculty Department of Mechanical Engineering What is a computer??? Computer is a device that computes, especially a
More informationI.A.C. - Italian Activity Contest.
I.A.C. - Italian Activity Contest. RULES FOR 2017 I.A.C. EDITION. Scope: Main goal of the I.A.C. - Italian Activity Contest is to promote, encourage and support the use of the HAM bands from 50 MHz to
More informationOracle HCM Cloud Common Release 12. What s New
Oracle HCM Cloud Common Release 12 What s New TABLE OF CONTENTS REVISION HISTORY... 4 OVERVIEW... 7 RELEASE FEATURE SUMMARY... 8 HCM COMMON FEATURES... 11 APPLICATIONS SECURITY... 11 User Account Management...
More informationExcel Tool: Calculations with Data Sets
Excel Tool: Calculations with Data Sets The best thing about Excel for the scientist is that it makes it very easy to work with data sets. In this assignment, we learn how to do basic calculations that
More informationIntroduction to the workbook and spreadsheet
Excel Tutorial To make the most of this tutorial I suggest you follow through it while sitting in front of a computer with Microsoft Excel running. This will allow you to try things out as you follow along.
More informationMetrixND Newsletters Contents List By Topic
Workshops 2012 Workshops, Meetings and Free Brown Bag Seminars Vol 38, Feb 2012 2011 Workshops, Meetings and Free Brown Bag Seminars Vol 37, May 2011 2010 Workshops, Meetings and Free Brown Bag Seminars
More informationCSE 123 Introduction to Computing
CSE 123 Introduction to Computing Lecture 2 Creating Charts with Excel and Working with Formulas and Functions SPRING 2012 Assist. Prof. A. Evren Tugtas Course notes have been prepared using some of the
More informationStatistics 13, Lab 1. Getting Started. The Mac. Launching RStudio and loading data
Statistics 13, Lab 1 Getting Started This first lab session is nothing more than an introduction: We will help you navigate the Statistics Department s (all Mac) computing facility and we will get you
More informationContents:
Contents: Conventional/REO/Short Sale Single Family Sold Sold Properties by Cities - Properties Sold Supply Inventory Median Price Comparison by Year www.swflrealtors.com Page #. Single Family & Condo
More informationMichigan Tech University Banner Finance Self-Service User Guide. Revised 1/11/17
Michigan Tech University Banner Finance Self-Service User Guide Revised 1/11/17 TABLE OF CONTENTS Chart Terminology... 3 MTU Fiscal Year... 3 Web Resource Banner and Reporting... 3 Reports Listing your
More information7 Sept 29-Oct 3. 8 Oct 6-10
Fifth Grade Math Curriculum Map Week 1 Aug 18-22 2 Aug 25-29 3 Sept 2-5 4 Sept 8-12 5 Sept 15-19 2014-2015 (I can statements and testing dates included) 6 Sept 22-26 7 Sept 29-Oct 3 8 Oct 6-10 9 Oct 13-17
More informationGrade 4 Mathematics Pacing Guide
Jul 2014 ~ August 2014 ~ Sep 2014 1 2 3 4 5 6 7 8 9 10 11 12 14 15 16 17 Routines 19 Routines 20 Routines BOY 22 BOY 23 24 11 12 14 29 15 30 31 Notes: Found Online @ wwweverydaymathonlinecom 1 More Calendars
More informationWithdrawn Equity Offerings: Event Study and Cross-Sectional Regression Analysis Using Eventus Software
Withdrawn Equity Offerings: Event Study and Cross-Sectional Regression Analysis Using Eventus Software Copyright 1998-2001 Cowan Research, L.C. This note demonstrates the use of Eventus software to conduct
More informationSection 1.2: What is a Function? y = 4x
Section 1.2: What is a Function? y = 4x y is the dependent variable because it depends on what x is. x is the independent variable because any value can be chosen to replace x. Domain: a set of values
More informationFreedom of Information Act 2000 reference number RFI
P. Norris By email to: xxxxxxxxxxxxxxxxxxxxxx@xxxxxxxxxxxxxx.xxm 02 November 2011 Dear P. Norris Freedom of Information Act 2000 reference number RFI20111218 Thank you for your request under the Freedom
More information3. EXCEL FORMULAS & TABLES
Winter 2019 CS130 - Excel Formulas & Tables 1 3. EXCEL FORMULAS & TABLES Winter 2019 Winter 2019 CS130 - Excel Formulas & Tables 2 Cell References Absolute reference - refer to cells by their fixed position.
More informationLAB 1 General MATLAB Information 1
LAB 1 General MATLAB Information 1 General: To enter a matrix: > type the entries between square brackets, [...] > enter it by rows with elements separated by a space or comma > rows are terminated by
More informationCS113: Lecture 3. Topics: Variables. Data types. Arithmetic and Bitwise Operators. Order of Evaluation
CS113: Lecture 3 Topics: Variables Data types Arithmetic and Bitwise Operators Order of Evaluation 1 Variables Names of variables: Composed of letters, digits, and the underscore ( ) character. (NO spaces;
More informationINTRODUCTION TO GAMS 1 Daene C. McKinney CE385D Water Resources Planning and Management The University of Texas at Austin
INTRODUCTION TO GAMS 1 Daene C. McKinney CE385D Water Resources Planning and Management The University of Texas at Austin Table of Contents 1. Introduction... 2 2. GAMS Installation... 2 3. GAMS Operation...
More informationIntroduction to EViews. Manuel Leonard F. Albis UP School of Statistics
Introduction to EViews Manuel Leonard F. Albis UP School of Statistics EViews EViews provides sophisticated data analysis, regression, and forecasting tools on Windows-based computers. Areas where EViews
More informationLecture 10: Boolean Expressions
Lecture 10: Boolean Expressions CS1068+ Introductory Programming in Python Dr Kieran T. Herley Department of Computer Science University College Cork 2017-2018 KH (12/10/17) Lecture 10: Boolean Expressions
More informationSF1901 Probability Theory and Statistics: Autumn 2016 Lab 0 for TCOMK
Mathematical Statistics SF1901 Probability Theory and Statistics: Autumn 2016 Lab 0 for TCOMK 1 Preparation This computer exercise is a bit different from the other two, and has some overlap with computer
More informationDesigning Adhoc Reports
Designing Adhoc Reports Intellicus Web-based Reporting Suite Version 4.5 Enterprise Professional Smart Developer Smart Viewer Intellicus Technologies info@intellicus.com www.intellicus.com Copyright 2009
More informationClinical Infectious Diseases
2013 Media Kit Advertising & Sales Contacts Naomi Reeves Advertising Sales Manager t: +44 (0) 1865 355396 e: naomi.reeves@oup.com For reprints, supplements or tailored products: e: corporate.services@oup.com
More informationCIMA Asia. Interactive Timetable Live Online
CIMA Asia Interactive Timetable 2017 2018 Live Online Version 1 Information last updated 09 October 2017 Please note: Information and dates in this timetable are subject to change. CIMA Cert BA Course
More informationThe Time Series Forecasting System Charles Hallahan, Economic Research Service/USDA, Washington, DC
The Time Series Forecasting System Charles Hallahan, Economic Research Service/USDA, Washington, DC INTRODUCTION The Time Series Forecasting System (TSFS) is a component of SAS/ETS that provides a menu-based
More informationSoftware installation
Table of contents 1 Introduction...4 2 Software installation...4 2.1 Protection...4 2.2 Minimum recommended configuration...4 2.3 Installation...4 3 Uninstall the application...4 4 Software presentation...5
More informationBirthdates by Species 12,064. Beef Bison Dairy Sheep. Birthdates by Year
As of December 31, 211 Birthdates in Database 14,465,862 Birthdates by Species 14,, 12,, 12,49,439 1,, 8,, 6,, 4,, 2,, 2,43,732 12,64 627 Beef Bison Dairy Sheep Birthdates by Year 3,, 2,5, 2,, Beef Dairy
More informationPrevious Intranet Initial intranet created in 2002 Created solely by Information Systems Very utilitarian i Created to permit people to access forms r
ACHIEVA Cafe Steve McDonell Previous Intranet Initial intranet created in 2002 Created solely by Information Systems Very utilitarian i Created to permit people to access forms remotely Not much content
More informationA brief introduction to SCILAB
A brief introduction to SCILAB SCILAB is a powerful and versatile package for mathematical modelling and an excellent tool for solving a wide range of engineering problems. SCILAB supports simple interactive
More informationLab 1 Intro to MATLAB and FreeMat
Lab 1 Intro to MATLAB and FreeMat Objectives concepts 1. Variables, vectors, and arrays 2. Plotting data 3. Script files skills 1. Use MATLAB to solve homework problems 2. Plot lab data and mathematical
More informationDesigning Adhoc Reports
Designing Adhoc Reports Intellicus Enterprise Reporting and BI Platform Intellicus Technologies info@intellicus.com www.intellicus.com Copyright 2010 Intellicus Technologies This document and its content
More informationA Guide to Using Some Basic MATLAB Functions
A Guide to Using Some Basic MATLAB Functions UNC Charlotte Robert W. Cox This document provides a brief overview of some of the essential MATLAB functionality. More thorough descriptions are available
More informationIntroduction to Programming
Introduction to Programming Department of Computer Science and Information Systems Tingting Han (afternoon), Steve Maybank (evening) tingting@dcs.bbk.ac.uk sjmaybank@dcs.bbk.ac.uk Autumn 2017 Week 4: More
More informationStat 302 Statistical Software and Its Applications Data Import and Export
1 Stat 302 Statistical Software and Its Applications Data Import and Export Fritz Scholz Department of Statistics, University of Washington Winter Quarter 2015 January 26, 2015 2 General Remarks on I/O
More informationFREQUENTLY ASKED QUESTIONS
DISTRICT 7030 WEBSITE FREQUENTLY ASKED QUESTIONS NB: THIS WILL BE REGULARLY UPDATED FOR YOUR INFORMATION. 1. This website works better with the following browsers: Internet Explorer (IE) and Google Chrome.
More informationStat 302 Statistical Software and Its Applications Introduction to R
Stat 302 Statistical Software and Its Applications Introduction to R Fritz Scholz Department of Statistics, University of Washington Winter Quarter 2015 January 8, 2015 2 Statistical Software There are
More informationMATLAB NOTES. Matlab designed for numerical computing. Strongly oriented towards use of arrays, one and two dimensional.
MATLAB NOTES Matlab designed for numerical computing. Strongly oriented towards use of arrays, one and two dimensional. Excellent graphics that are easy to use. Powerful interactive facilities; and programs
More informationCIMA Certificate BA Interactive Timetable
CIMA Certificate BA Interactive Timetable 2018 Nottingham & Leicester Version 3.2 Information last updated 09/03/18 Please note: Information and dates in this timetable are subject to change. Introduction
More informationCreates a 1 X 1 matrix (scalar) with a value of 1 in the column 1, row 1 position and prints the matrix aaa in the command window.
EE 350L: Signals and Transforms Lab Spring 2007 Lab #1 - Introduction to MATLAB Lab Handout Matlab Software: Matlab will be the analytical tool used in the signals lab. The laboratory has network licenses
More informationIvy s Business Analytics Foundation Certification Details (Module I + II+ III + IV + V)
Ivy s Business Analytics Foundation Certification Details (Module I + II+ III + IV + V) Based on Industry Cases, Live Exercises, & Industry Executed Projects Module (I) Analytics Essentials 81 hrs 1. Statistics
More informationMATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano
MATLAB Lesson I Chiara Lelli Politecnico di Milano October 2, 2012 MATLAB MATLAB (MATrix LABoratory) is an interactive software system for: scientific computing statistical analysis vector and matrix computations
More informationNeeds Driven Workflow Design
Needs Driven Workflow Design Validation Interpretation DEPLOY Stakeholders Types and levels of analysis determine data, algorithms & parameters, and deployment Visually encode data Overlay data Data Select
More informationPROGRAMMING ROLLING REGRESSIONS IN SAS MICHAEL D. BOLDIN, UNIVERSITY OF PENNSYLVANIA, PHILADELPHIA, PA
PROGRAMMING ROLLING REGRESSIONS IN SAS MICHAEL D. BOLDIN, UNIVERSITY OF PENNSYLVANIA, PHILADELPHIA, PA ABSTRACT SAS does not have an option for PROC REG (or any of its other equation estimation procedures)
More informationTemperature Patterns: Functions and Line Graphs
activity 3.1 Temperature Patterns: Functions and Line Graphs In this activity, you will work with examples in which curves obtained by joining known points of the graph of a function can help you understand
More informationBasic stuff -- assignments, arithmetic and functions
Basic stuff -- assignments, arithmetic and functions Most of the time, you will be using Maple as a kind of super-calculator. It is possible to write programs in Maple -- we will do this very occasionally,
More informationCS2 Current Technologies Lecture 2: SQL Programming Basics
T E H U N I V E R S I T Y O H F R G E D I N B U CS2 Current Technologies Lecture 2: SQL Programming Basics Dr Chris Walton (cdw@dcs.ed.ac.uk) 4 February 2002 The SQL Language 1 Structured Query Language
More informationIST Computational Tools for Statistics I. DEÜ, Department of Statistics
IST 1051 Computational Tools for Statistics I 1 DEÜ, Department of Statistics Course Objectives Computational Tools for Statistics-I course can increase the understanding of statistics and helps to learn
More informationQuantitative Vulnerability Assessment of Systems Software
Quantitative Vulnerability Assessment of Systems Software Omar H. Alhazmi Yashwant K. Malaiya Colorado State University Motivation Vulnerabilities: defect which enables an attacker to bypass security measures
More informationPackage ggseas. June 12, 2018
Package ggseas June 12, 2018 Title 'stats' for Seasonal Adjustment on the Fly with 'ggplot2' Version 0.5.4 Maintainer Peter Ellis Provides 'ggplot2' 'stats' that estimate
More informationGeneral MATLAB Information 1
Introduction to MATLAB General MATLAB Information 1 Once you initiate the MATLAB software, you will see the MATLAB logo appear and then the MATLAB prompt >>. The prompt >> indicates that MATLAB is awaiting
More informationMBV4410/9410 Fall Bioinformatics for Molecular Biology. Introduction to R
MBV4410/9410 Fall 2018 Bioinformatics for Molecular Biology Introduction to R Outline Introduce R Basic operations RStudio Bioconductor? Goal of the lecture Introduce you to R Show how to run R, basic
More informationReporter Tutorial Pivot Reports
Reporter Tutorial Pivot Reports Pivot reports are a special kind of summary report that allows for the aggregation of data along two dimensions, such as counts by shop and status. Pivot reports can also
More informationNigerian Telecommunications Sector
Nigerian Telecommunications Sector SUMMARY REPORT: Q4 and full year 2015 NATIONAL BUREAU OF STATISTICS 26th April 2016 Telecommunications Data The telecommunications data used in this report were obtained
More informationMicrosoft Excel 2007
Learning computers is Show ezy Microsoft Excel 2007 301 Excel screen, toolbars, views, sheets, and uses for Excel 2005-8 Steve Slisar 2005-8 COPYRIGHT: The copyright for this publication is owned by Steve
More informationINFORMATION SHEET 24002/1: AN EXCEL PRIMER
INFORMATION SHEET 24002/1: AN EXCEL PRIMER How to use this document This guide to the basics of Microsoft Excel is intended for those people who use the program, but need or wish to know more than the
More informationHistory. used in early Mac development notable systems in Pascal Skype TeX embedded systems
Overview The Pascal Programming Language (with material from tutorialspoint.com) Background & History Features Hello, world! General Syntax Variables/Data Types Operators Conditional Statements Functions
More informationFormulas and Functions
Conventions used in this document: Keyboard keys that must be pressed will be shown as Enter or Ctrl. Controls to be activated with the mouse will be shown as Start button > Settings > System > About.
More informationFunctions and Recursion
Functions and Recursion 1 Outline Introduction Program Components in C++ Math Library Functions Functions Function Definitions Function Prototypes Header Files Random Number Generation Example: A Game
More informationIntroduction to Matlab
Introduction to Matlab Kristian Sandberg Department of Applied Mathematics University of Colorado Goal The goal with this worksheet is to give a brief introduction to the mathematical software Matlab.
More information