Dr. V. Alhanaqtah. Econometrics. Graded assignment

Size: px
Start display at page:

Download "Dr. V. Alhanaqtah. Econometrics. Graded assignment"

Transcription

1 Laboratory assignment 7. AUTOCORRELATION Step 1. Install and activate necessary packages. Copy and paste in R Studio the following commands: install.packages("lubridate") install.packages("sandwich") install.packages("lmtest") install.packages("car") install.packages("zoo") install.packages("xts") install.packages("dplyr") install.packages("broom") install.packages("ggplot2") install.packages("quantmod") install.packages("rusquant") install.packages("sophisthse") install.packages("quandl") library("lubridate") library("sandwich") library("lmtest") library("car") library("zoo") library("xts") library("dplyr") library("broom") library("ggplot2") library("quantmod") library("rusquant") library("sophisthse") library("quandl") Select all and press: CTRL+ENTER. It takes a little time for installation and activation Now you are ready to work with data. Operations with dates Step 2. Firstly, we ll work with dates. Let s create a vector of dates from August 17,2011 to April 15, 2012: x<-c(" "," ") The following command specifies the order of year, month and day: y<-ymd(x) y As a result we see the following: [1] " UTC" " UTC" Step 3. We can operate with dates similarly as we operate with numbers. Let s add 20 days to our textual date: y+days(20) [1] " UTC" " UTC" 1

2 Let s look at dates 10 years ago: y-days(10) [1] " UTC" " UTC" Let s extract only months and then extract only years: month(y) year(y) Creation of time series Step 4. Now we ll create our first time series: here a data set in which one observation corresponds to one day. Note, x is a variable which contains data, y gives dates of corresponding observations. We have 5 observations (5 random numbers). Starting date is January 1, x<-rnorm(5) x y<-ymd(" ")+days(0:4) y [1] " UTC" " UTC" " UTC" " UTC" [5] " UTC" The following command creates a time series, where each value of x corresponds to its date. Observations are ordered by the variable y: ts<-zoo(x,order.by=y) ts Step 5. Look at the previous (lagged) dates. For example, the lag is 1 day forward: lag(ts,1) Look at the difference between data: diff(ts) We usually interested in difference between data when we study currency exchange rates (how it changes). Step 6. Let s create two new time series. We ll work with the same 5 numbers but now as quarterly and then monthly data. Here zooreg is a regular time series, start indicates a starting date, yearqtr indicates quarterly data (where 01 is the first quarter), freq indicates frequency of data equal to 4 observation in a year: ts2<-zooreg(x,start=as.yearqtr(" "),freq=4) ts2 In the following time series yearmon indicates monthly data (where 01 is the first month), frequency is equal 12 observation in a year: ts3<-zooreg(x,start=as.yearmon(" "),freq=12) ts3 2

3 Basic operations with time series Step 7. Let s consider a time series built-in R: US Investment Data. This is an annual time series from 1963 to 1982 with 7 variables. Look at the description of a data set and download data: help(investment) data(investment) Look where the data starts and ends: start(investment) end(investment) Or you may use the following command to see the start, end, frequency of data, as well as all time indexes: time(investment) You may see just values of 7 variables without time indexes: coredata(investment) We can see that some observations are omitted (NA). Step 8. Now we ll learn how to work with omitted values. To begin with, we create new artificial data set: dna<-investment Now we make some omissions artificially. We omit 2 values: the first is in 1 st row/2 nd column and the second is in 5 th row/3 rd column: dna[1,2]<-na dna[5,3]<-na Now we rebuild omitted values. The first approach is linear approximation (interpolation). A Computer takes two values along the edges of omitted values and calculates the average: na.approx(dna) The second approach implies coping of the previous value: na.locf(dna) Downloading data from external sources Step 9. Consider open sources of financial data from Internet. There are some financial databases: Let s have a look at prices of Apple shares from googlefinance.com Note, we need to do some settings in order to read data in English, if your Windows is non-english: Sys.setlocale("LC_TIME","C") Now download data on prices of shares of an Apple corporation: getsymbols(symbols = "AAPL",from=" ",to=" ",src="google") Glimpse at the beginning and the end of a data set: head(aapl) tail(aapl) 3

4 Step 10. Now download data on prices of shares of the greatest Russian monopolist company GAZPROM: getsymbols(symbols = "GAZP",from=" ",to=" ",src="Finam") head(gazp) tail(gazp) Build a default graph, where we can see price at opening/closing of a stock exchange, minimum/maximum prices all in one graph: plot(gazp) Or you can split the information into 4 graphs: autoplot(gazp) The following graph is better for technical analysis: autoplot(gazp[,1:4], facets=null) Advanced graph where you can also see trading volumes (at the bottom): chartseries(gazp) Robust confidence intervals Now we move on to the problem of autocorrelation that is very common for time series. Step 11. We go back to US Investment Data. This is an annual time series from 1963 to 1982 with 7 variables. Create a data set in R: d<-investment Turn it into disordered time series: d<-as.zoo(investment) Plot in one graph Investment and GNP indicators (1 st and 2 nd columns of a data set): autoplot(d[,1:2]) Step 12. Estimate a model using Ordinary Least Squares. Here real investments depend on real interest rate and real GNP. It is logical to expect autocorrelation in the model: model<-lm(data=d,realinv~realint+realgnp) summary(model) Step 13. Verify a hypothesis on equality of coefficients to zero (i.e., it implies insignificance of coefficients): coeftest(model) It shows that only RealGNP coefficient is significant. Increase in RealGNP by 1 unit leads to increase in RealInv by 0.16 units. Construct a confidence interval: confint(model) Step 14. Is there autocorrelation in the model? We use a graphical method: analyses of residuals. Here we verify how the current values of residuals depend on the previous values. In order to fulfill the analyses we need to augment the data set d by resid (residuals) and fitted (prognostic) values 1 : d_aug<-augment(model,as.data.frame(d)) 1 We replace a data set d by a new data set with residuals. But this data set is a time series. That is why we firstly turn it into a table. 4

5 We are interested in residuals. Build a graph of residuals, where lag(.resid) is the previous value (X-axis),.resid is the current value (Y-axis): qplot(data=d_aug,lag(.resid),.resid) There is a relationship between previous and current values of residuals. Step 15. We need to correct autocorrelation. Instead of usual standard errors we have to use robust standard errors. Firstly, let s have a look at a matrix which is inconsistent in the presence of autocorrelation. Then have a look at a matrix, which is heteroscedasticity and autocorrelation consistent: vcov(model) vcovhac(model) Old matrix (Intercept) RealInt RealGNP (Intercept) RealInt RealGNP HAC matrix (Intercept) RealInt RealGNP (Intercept) RealInt RealGNP We see that in HAC matrix estimates of coefficients are higher than in the old, usual, matrix. Step 16. In the Step 13 testing hypothesis and constructing confidence intervals was incorrect, because we didn t take into account presence of autocorrelation and used usual matrix. Now we are going to verify hypothesis on significance of coefficients and construct correct confidence intervals, using HAC matrix: coeftest(model,vcov.=vcovhac(model)) We see that coefficient of RealGNP is significant (***), other coefficients are insignificant. In order to construct correct confidence intervals, firstly we need to put the results of calculations of standard errors into a separate table conftable, from which we will need only Estimate and Standard Error. So extract it to the table ci, where 1 is the 1 st column of conftable and 2 is the 2 nd column of conftable: conftable <- coeftest(model,vcov. = vcovhac(model)) ci <- data.frame(estimate=conftable[,1],se_ac=conftable[,2]) Now we have to add left and right borders of 95 % confidence interval as ±1.96 Std. Error: ci <- mutate(ci,left_95=estimate-1.96*se_ac,right_95=estimate+1.96*se_ac) ci As a result we have got the following confidence intervals: estimate se_ac left_95 right_ We can see that robust confidence intervals are wider than old confidence intervals because of autocorrelation. Step 17. Durbin-Watson test. H 0: no autocorrelation H a: autocorrelation of the 1 st order dwt(model) Formal tests for autocorrelation p-value is less then 5 % (0.036<0.05), so H 0 is rejected. There is autocorrelation in the model. 5

6 Step 18. Breusch-Godfrey test. H 0: no autocorrelation H a: autocorrelation of any given order Presume that the maximum possible order of autocorrelation is 2: bgtest(model,order=2) p-value is higher then 5 % (0.1393>0.05), so H 0 is not rejected. We see that two tests give different results. What does it mean? Note, that a phrase hypothesis is not rejected implies that there is not enough data to reject a hypothesis. In other words, that was sufficient data for DW-test to reject a hypothesis. At the same time, that was not sufficient data for BG-test to reject a hypothesis. To sum up, H 0 is rejected. It means there is autocorrelation in the model. Graded assignment Firstly, install and activate all packages from Step 1. Exercise 1. Work with a Solow data set from Ecdat package: install.packages("ecdat") library("ecdat") help(solow) h<-solow Estimate a dependence of output q on capital k and technology A. Which command did you use? Estimate a usual matrix and a matrix, consistent to heteroscedasticity and autocorrelation. Which commands did you use? Exercise 2. Fulfill the Durbin-Watson test. What is the value of DW-statistic? What is the statistical inference? (a) autocorrelation; (b) no autocorrelation. Exercise 3. Estimate a dependence of output q only on capital k. Which command did you use? Fulfill the Breusch-Godfrey test with the correlation order equal to 3. What is the value of BG-statistic? What is the statistical inference? (a) autocorrelation; (b) no autocorrelation. File/Save as Finish and save your lab 6

Serial Correlation and Heteroscedasticity in Time series Regressions. Econometric (EC3090) - Week 11 Agustín Bénétrix

Serial Correlation and Heteroscedasticity in Time series Regressions. Econometric (EC3090) - Week 11 Agustín Bénétrix Serial Correlation and Heteroscedasticity in Time series Regressions Econometric (EC3090) - Week 11 Agustín Bénétrix 1 Properties of OLS with serially correlated errors OLS still unbiased and consistent

More information

Here is Kellogg s custom menu for their core statistics class, which can be loaded by typing the do statement shown in the command window at the very

Here is Kellogg s custom menu for their core statistics class, which can be loaded by typing the do statement shown in the command window at the very Here is Kellogg s custom menu for their core statistics class, which can be loaded by typing the do statement shown in the command window at the very bottom of the screen: 4 The univariate statistics command

More information

Intro to E-Views. E-views is a statistical package useful for cross sectional, time series and panel data statistical analysis.

Intro to E-Views. E-views is a statistical package useful for cross sectional, time series and panel data statistical analysis. Center for Teaching, Research & Learning Research Support Group at the CTRL Lab American University, Washington, D.C. http://www.american.edu/provost/ctrl/ 202-885-3862 Intro to E-Views E-views is a statistical

More information

Some issues with R It is command-driven, and learning to use it to its full extent takes some time and effort. The documentation is comprehensive,

Some issues with R It is command-driven, and learning to use it to its full extent takes some time and effort. The documentation is comprehensive, R To R is Human R is a computing environment specially made for doing statistics/econometrics. It is becoming the standard for advanced dealing with empirical data, also in finance. Good parts It is freely

More information

Bernt Arne Ødegaard. 15 November 2018

Bernt Arne Ødegaard. 15 November 2018 R Bernt Arne Ødegaard 15 November 2018 To R is Human 1 R R is a computing environment specially made for doing statistics/econometrics. It is becoming the standard for advanced dealing with empirical data,

More information

Model Diagnostic tests

Model Diagnostic tests Model Diagnostic tests 1. Multicollinearity a) Pairwise correlation test Quick/Group stats/ correlations b) VIF Step 1. Open the EViews workfile named Fish8.wk1. (FROM DATA FILES- TSIME) Step 2. Select

More information

Econometrics I: OLS. Dean Fantazzini. Dipartimento di Economia Politica e Metodi Quantitativi. University of Pavia

Econometrics I: OLS. Dean Fantazzini. Dipartimento di Economia Politica e Metodi Quantitativi. University of Pavia Dipartimento di Economia Politica e Metodi Quantitativi University of Pavia Overview of the Lecture 1 st EViews Session I: Convergence in the Solow Model 2 Overview of the Lecture 1 st EViews Session I:

More information

Gov Troubleshooting the Linear Model II: Heteroskedasticity

Gov Troubleshooting the Linear Model II: Heteroskedasticity Gov 2000-10. Troubleshooting the Linear Model II: Heteroskedasticity Matthew Blackwell December 4, 2015 1 / 64 1. Heteroskedasticity 2. Clustering 3. Serial Correlation 4. What s next for you? 2 / 64 Where

More information

Source:

Source: Time Series Source: http://www.princeton.edu/~otorres/stata/ Time series data is data collected over time for a single or a group of variables. Date variable For this kind of data the first thing to do

More information

EXST 7014, Lab 1: Review of R Programming Basics and Simple Linear Regression

EXST 7014, Lab 1: Review of R Programming Basics and Simple Linear Regression EXST 7014, Lab 1: Review of R Programming Basics and Simple Linear Regression OBJECTIVES 1. Prepare a scatter plot of the dependent variable on the independent variable 2. Do a simple linear regression

More information

Lab Session 1. Introduction to Eviews

Lab Session 1. Introduction to Eviews Albert-Ludwigs University Freiburg Department of Empirical Economics Time Series Analysis, Summer 2009 Dr. Sevtap Kestel To see the data of m1: 1 Lab Session 1 Introduction to Eviews We introduce the basic

More information

INTRODUCTION TO PANEL DATA ANALYSIS

INTRODUCTION TO PANEL DATA ANALYSIS INTRODUCTION TO PANEL DATA ANALYSIS USING EVIEWS FARIDAH NAJUNA MISMAN, PhD FINANCE DEPARTMENT FACULTY OF BUSINESS & MANAGEMENT UiTM JOHOR PANEL DATA WORKSHOP-23&24 MAY 2017 1 OUTLINE 1. Introduction 2.

More information

How to use FSBForecast Excel add-in for regression analysis (July 2012 version)

How to use FSBForecast Excel add-in for regression analysis (July 2012 version) How to use FSBForecast Excel add-in for regression analysis (July 2012 version) FSBForecast is an Excel add-in for data analysis and regression that was developed at the Fuqua School of Business over the

More information

An Econometric Study: The Cost of Mobile Broadband

An Econometric Study: The Cost of Mobile Broadband An Econometric Study: The Cost of Mobile Broadband Zhiwei Peng, Yongdon Shin, Adrian Raducanu IATOM13 ENAC January 16, 2014 Zhiwei Peng, Yongdon Shin, Adrian Raducanu (UCLA) The Cost of Mobile Broadband

More information

Morningstar Direct SM Dates Sets and Calculations

Morningstar Direct SM Dates Sets and Calculations Morningstar has many types of data points organized by standard (pre-defined), historical, and custom calculation data points. You can assemble a custom data set using only data points relevant to your

More information

Notes for Student Version of Soritec

Notes for Student Version of Soritec Notes for Student Version of Soritec Department of Economics January 20, 2001 INSTRUCTIONS FOR USING SORITEC This is a brief introduction to the use of the student version of the Soritec statistical/econometric

More information

Data Structures: Times, Dates, Ordered Observations... and Beyond. zeileis/

Data Structures: Times, Dates, Ordered Observations... and Beyond.  zeileis/ Data Structures: Times, Dates, Ordered Observations... and Beyond Achim Zeileis Kurt Hornik http://statmath.wu-wien.ac.at/ zeileis/ Overview Data structures Principles Object orientation Times and dates

More information

Example 1 of panel data : Data for 6 airlines (groups) over 15 years (time periods) Example 1

Example 1 of panel data : Data for 6 airlines (groups) over 15 years (time periods) Example 1 Panel data set Consists of n entities or subjects (e.g., firms and states), each of which includes T observations measured at 1 through t time period. total number of observations : nt Panel data have

More information

National College of Ireland. Project Submission Sheet 2015/2016. School of Computing

National College of Ireland. Project Submission Sheet 2015/2016. School of Computing National College of Ireland Project Submission Sheet 2015/2016 School of Computing Student Name: Anicia Lafayette-Madden Student ID: 15006590 Programme: M.Sc Data Analytics Year: 2015-2016 Module: Configuration

More information

Section 4.1: Time Series I. Jared S. Murray The University of Texas at Austin McCombs School of Business

Section 4.1: Time Series I. Jared S. Murray The University of Texas at Austin McCombs School of Business Section 4.1: Time Series I Jared S. Murray The University of Texas at Austin McCombs School of Business 1 Time Series Data and Dependence Time-series data are simply a collection of observations gathered

More information

ECONOMICS 452 TIME SERIES WITH STATA

ECONOMICS 452 TIME SERIES WITH STATA 1 ECONOMICS 452 01 Introduction TIME SERIES WITH STATA This manual is intended for the first half of the Economics 452 course and introduces some of the time series capabilities in Stata 8 I will be writing

More information

Bivariate Linear Regression James M. Murray, Ph.D. University of Wisconsin - La Crosse Updated: October 04, 2017

Bivariate Linear Regression James M. Murray, Ph.D. University of Wisconsin - La Crosse Updated: October 04, 2017 Bivariate Linear Regression James M. Murray, Ph.D. University of Wisconsin - La Crosse Updated: October 4, 217 PDF file location: http://www.murraylax.org/rtutorials/regression_intro.pdf HTML file location:

More information

IQR = number. summary: largest. = 2. Upper half: Q3 =

IQR = number. summary: largest. = 2. Upper half: Q3 = Step by step box plot Height in centimeters of players on the 003 Women s Worldd Cup soccer team. 157 1611 163 163 164 165 165 165 168 168 168 170 170 170 171 173 173 175 180 180 Determine the 5 number

More information

A. Using the data provided above, calculate the sampling variance and standard error for S for each week s data.

A. Using the data provided above, calculate the sampling variance and standard error for S for each week s data. WILD 502 Lab 1 Estimating Survival when Animal Fates are Known Today s lab will give you hands-on experience with estimating survival rates using logistic regression to estimate the parameters in a variety

More information

An introduction to SPSS

An introduction to SPSS An introduction to SPSS To open the SPSS software using U of Iowa Virtual Desktop... Go to https://virtualdesktop.uiowa.edu and choose SPSS 24. Contents NOTE: Save data files in a drive that is accessible

More information

Autocorrelated errors explain the apparent relationship between disapproval of the US

Autocorrelated errors explain the apparent relationship between disapproval of the US Autocorrelated errors explain the apparent relationship between disapproval of the US Congress and prosocial language Alexander Koplenig Institute for the German language (IDS), Mannheim, Germany. (1)

More information

Robust Linear Regression (Passing- Bablok Median-Slope)

Robust Linear Regression (Passing- Bablok Median-Slope) Chapter 314 Robust Linear Regression (Passing- Bablok Median-Slope) Introduction This procedure performs robust linear regression estimation using the Passing-Bablok (1988) median-slope algorithm. Their

More information

Data Analysis and Solver Plugins for KSpread USER S MANUAL. Tomasz Maliszewski

Data Analysis and Solver Plugins for KSpread USER S MANUAL. Tomasz Maliszewski Data Analysis and Solver Plugins for KSpread USER S MANUAL Tomasz Maliszewski tmaliszewski@wp.pl Table of Content CHAPTER 1: INTRODUCTION... 3 1.1. ABOUT DATA ANALYSIS PLUGIN... 3 1.3. ABOUT SOLVER PLUGIN...

More information

College Algebra Exam File - Fall Test #1

College Algebra Exam File - Fall Test #1 College Algebra Exam File - Fall 010 Test #1 1.) For each of the following graphs, indicate (/) whether it is the graph of a function and if so, whether it the graph of one-to one function. Circle your

More information

Chapter 5 Parameter Estimation:

Chapter 5 Parameter Estimation: Chapter 5 Parameter Estimation: MODLER s regression commands at their most basic are essentially intuitive. For example, consider: IMP=F(GNP,CAPI) which specifies that IMP is a function F() of the variables

More information

Review of JDemetra+ revisions plug-in

Review of JDemetra+ revisions plug-in Review of JDemetra+ revisions plug-in Jennifer Davies and Duncan Elliott, Office for National Statistics March 28, 2018 1 Introduction This provides a review of the JDemetra+revisions plug-in written by

More information

Minitab 17 commands Prepared by Jeffrey S. Simonoff

Minitab 17 commands Prepared by Jeffrey S. Simonoff Minitab 17 commands Prepared by Jeffrey S. Simonoff Data entry and manipulation To enter data by hand, click on the Worksheet window, and enter the values in as you would in any spreadsheet. To then save

More information

Warm-Up Exercises. Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; y = 2x + 7 ANSWER ; 7

Warm-Up Exercises. Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; y = 2x + 7 ANSWER ; 7 Warm-Up Exercises Find the x-intercept and y-intercept 1. 3x 5y = 15 ANSWER 5; 3 2. y = 2x + 7 7 2 ANSWER ; 7 Chapter 1.1 Graph Quadratic Functions in Standard Form A quadratic function is a function that

More information

new [[.Dow- Eff Functions - DEf]] blue- colored link to go to there and click one of the five models above listed at that page: e.g.

new [[.Dow- Eff Functions - DEf]] blue- colored link to go to there and click one of the five models above listed at that page: e.g. Make your own DEf model http://intersci.ss.uci.edu/wiki/pdf/make_your_own_def_model.pdf Read: http://intersci.ss.uci.edu/wiki/pdf/wileych5ccrnetsofvarsmodels2blackdrw.pdf This will become part of Wiley

More information

THIS IS NOT REPRESNTATIVE OF CURRENT CLASS MATERIAL. STOR 455 Midterm 1 September 28, 2010

THIS IS NOT REPRESNTATIVE OF CURRENT CLASS MATERIAL. STOR 455 Midterm 1 September 28, 2010 THIS IS NOT REPRESNTATIVE OF CURRENT CLASS MATERIAL STOR 455 Midterm September 8, INSTRUCTIONS: BOTH THE EXAM AND THE BUBBLE SHEET WILL BE COLLECTED. YOU MUST PRINT YOUR NAME AND SIGN THE HONOR PLEDGE

More information

6:1 LAB RESULTS -WITHIN-S ANOVA

6:1 LAB RESULTS -WITHIN-S ANOVA 6:1 LAB RESULTS -WITHIN-S ANOVA T1/T2/T3/T4. SStotal =(1-12) 2 + + (18-12) 2 = 306.00 = SSpill + SSsubj + SSpxs df = 9-1 = 8 P1 P2 P3 Ms Ms-Mg 1 8 15 8.0-4.0 SSsubj= 3x(-4 2 + ) 4 17 15 12.0 0 = 96.0 13

More information

Empirical Reasoning Center R Workshop (Summer 2016) Session 1. 1 Writing and executing code in R. 1.1 A few programming basics

Empirical Reasoning Center R Workshop (Summer 2016) Session 1. 1 Writing and executing code in R. 1.1 A few programming basics Empirical Reasoning Center R Workshop (Summer 2016) Session 1 This guide reviews the examples we will cover in today s workshop. It should be a helpful introduction to R, but for more details, the ERC

More information

Individual Covariates

Individual Covariates WILD 502 Lab 2 Ŝ from Known-fate Data with Individual Covariates Today s lab presents material that will allow you to handle additional complexity in analysis of survival data. The lab deals with estimation

More information

MPhil computer package lesson: getting started with Eviews

MPhil computer package lesson: getting started with Eviews MPhil computer package lesson: getting started with Eviews Ryoko Ito (ri239@cam.ac.uk, itoryoko@gmail.com, www.itoryoko.com ) 1. Creating an Eviews workfile 1.1. Download Wage data.xlsx from my homepage:

More information

610 R12 Prof Colleen F. Moore Analysis of variance for Unbalanced Between Groups designs in R For Psychology 610 University of Wisconsin--Madison

610 R12 Prof Colleen F. Moore Analysis of variance for Unbalanced Between Groups designs in R For Psychology 610 University of Wisconsin--Madison 610 R12 Prof Colleen F. Moore Analysis of variance for Unbalanced Between Groups designs in R For Psychology 610 University of Wisconsin--Madison R is very touchy about unbalanced designs, partly because

More information

MAT 103 F09 TEST 3 REVIEW (CH 4-5)

MAT 103 F09 TEST 3 REVIEW (CH 4-5) MAT 103 F09 TEST 3 REVIEW (CH 4-5) NAME For # 1-3, solve the system of equations by graphing. Label the equation of each line on your graph and write the solution as an ordered pair. Be sure to CHECK your

More information

Polymath 6. Overview

Polymath 6. Overview Polymath 6 Overview Main Polymath Menu LEQ: Linear Equations Solver. Enter (in matrix form) and solve a new system of simultaneous linear equations. NLE: Nonlinear Equations Solver. Enter and solve a new

More information

EXCEL ADD-IN FOR REGRESSION ANALYSIS

EXCEL ADD-IN FOR REGRESSION ANALYSIS EXCEL ADD-IN FOR REGRESSION ANALYSIS RegressIt is an Excel add-in for statistical analysis that was developed at the Fuqua School of Business, Duke University, over the last 5 years by Professor Robert

More information

A time series is a series of observations on a variable at successive times.

A time series is a series of observations on a variable at successive times. A time series is a series of observations on a variable at successive times. Exercise: Download the annual US GDP. 1 Create a working directory, say C:\Projects\GDPa, for the analysis of the annual US

More information

SYS 6021 Linear Statistical Models

SYS 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 information

R Command Summary. Steve Ambler Département des sciences économiques École des sciences de la gestion. April 2018

R Command Summary. Steve Ambler Département des sciences économiques École des sciences de la gestion. April 2018 R Command Summary Steve Ambler Département des sciences économiques École des sciences de la gestion Université du Québec à Montréal c 2018 : Steve Ambler April 2018 This document describes some of the

More information

Spatial Patterns Point Pattern Analysis Geographic Patterns in Areal Data

Spatial Patterns Point Pattern Analysis Geographic Patterns in Areal Data Spatial Patterns We will examine methods that are used to analyze patterns in two sorts of spatial data: Point Pattern Analysis - These methods concern themselves with the location information associated

More information

Basic time series with R

Basic 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 information

Handout 4 - Interpolation Examples

Handout 4 - Interpolation Examples Handout 4 - Interpolation Examples Middle East Technical University Example 1: Obtaining the n th Degree Newton s Interpolating Polynomial Passing through (n+1) Data Points Obtain the 4 th degree Newton

More information

9.1 Random coefficients models Constructed data Consumer preference mapping of carrots... 10

9.1 Random coefficients models Constructed data Consumer preference mapping of carrots... 10 St@tmaster 02429/MIXED LINEAR MODELS PREPARED BY THE STATISTICS GROUPS AT IMM, DTU AND KU-LIFE Module 9: R 9.1 Random coefficients models...................... 1 9.1.1 Constructed data........................

More information

Upper left area. It is R Script. Here you will write the code. 1. The goal of this problem set is to learn how to use HP filter in R.

Upper left area. It is R Script. Here you will write the code. 1. The goal of this problem set is to learn how to use HP filter in R. Instructions Setting up R Follow these steps if you are new with R: 1. Install R using the following link http://cran.us.r-project.org/ Make sure to select the version compatible with your operative system.

More information

Regression. Notes. Page 1 25-JAN :21:57. Output Created Comments

Regression. Notes. Page 1 25-JAN :21:57. Output Created Comments /STATISTICS COEFF OUTS CI(95) R ANOVA /CRITERIA=PIN(.05) POUT(.10) /DEPENDENT Favorability /METHOD=ENTER zcontemp ZAnxious6 zallcontact. Regression Notes Output Created Comments Input Missing Value Handling

More information

The simpleboot Package

The simpleboot Package The simpleboot Package April 1, 2005 Version 1.1-1 Date 2005-03-31 LazyLoad yes Depends R (>= 2.0.0), boot Title Simple Bootstrap Routines Author Maintainer Simple bootstrap

More information

One Factor Experiments

One Factor Experiments One Factor Experiments 20-1 Overview Computation of Effects Estimating Experimental Errors Allocation of Variation ANOVA Table and F-Test Visual Diagnostic Tests Confidence Intervals For Effects Unequal

More information

Round each observation to the nearest tenth of a cent and draw a stem and leaf plot.

Round each observation to the nearest tenth of a cent and draw a stem and leaf plot. Warm Up Round each observation to the nearest tenth of a cent and draw a stem and leaf plot. 1. Constructing Frequency Polygons 2. Create Cumulative Frequency and Cumulative Relative Frequency Tables 3.

More information

GRETL FOR TODDLERS!! CONTENTS. 1. Access to the econometric software A new data set: An existent data set: 3

GRETL FOR TODDLERS!! CONTENTS. 1. Access to the econometric software A new data set: An existent data set: 3 GRETL FOR TODDLERS!! JAVIER FERNÁNDEZ-MACHO CONTENTS 1. Access to the econometric software 3 2. Loading and saving data: the File menu 3 2.1. A new data set: 3 2.2. An existent data set: 3 2.3. Importing

More information

Multiple Regression White paper

Multiple Regression White paper +44 (0) 333 666 7366 Multiple Regression White paper A tool to determine the impact in analysing the effectiveness of advertising spend. Multiple Regression In order to establish if the advertising mechanisms

More information

Chapter 1: An Overview of Regression Analysis

Chapter 1: An Overview of Regression Analysis Chapter 1: An Overview of Regression Analysis In this chapter: 1. A simple example of regression analysis (UE 1.4): a) Creating an EViews workfile b) Entering data into an EViews workfile c) Creating a

More information

Title. Description. time series Introduction to time-series commands

Title. Description. time series Introduction to time-series commands Title time series Introduction to time-series commands Description The Time-Series Reference Manual organizes the commands alphabetically, making it easy to find individual command entries if you know

More information

NLREG COM Interface. Copyright , Phillip H. Sherrod All Rights Reserved

NLREG COM Interface. Copyright , Phillip H. Sherrod All Rights Reserved NLREG COM Interface Copyright 2002-2005, Phillip H. Sherrod All Rights Reserved Phillip H. Sherrod 6430 Annandale Cove Brentwood, TN 37027-6313 USA phil.sherrod@sandh.com www.nlreg.com Contents Contents...

More information

Working with Data and Charts

Working with Data and Charts PART 9 Working with Data and Charts In Excel, a formula calculates a value based on the values in other cells of the workbook. Excel displays the result of a formula in a cell as a numeric value. A function

More information

Package PSTR. September 25, 2017

Package PSTR. September 25, 2017 Type Package Package PSTR September 25, 2017 Title Panel Smooth Transition Regression Modelling Version 1.1.0 Provides the Panel Smooth Transition Regression (PSTR) modelling. The modelling procedure consists

More information

Multivariate Analysis Multivariate Calibration part 2

Multivariate Analysis Multivariate Calibration part 2 Multivariate Analysis Multivariate Calibration part 2 Prof. Dr. Anselmo E de Oliveira anselmo.quimica.ufg.br anselmo.disciplinas@gmail.com Linear Latent Variables An essential concept in multivariate data

More information

Regression. Page 1. Notes. Output Created Comments Data. 26-Mar :31:18. Input. C:\Documents and Settings\BuroK\Desktop\Data Sets\Prestige.

Regression. Page 1. Notes. Output Created Comments Data. 26-Mar :31:18. Input. C:\Documents and Settings\BuroK\Desktop\Data Sets\Prestige. GET FILE='C:\Documents and Settings\BuroK\Desktop\DataSets\Prestige.sav'. GET FILE='E:\MacEwan\Teaching\Stat252\Data\SPSS_data\MENTALID.sav'. DATASET ACTIVATE DataSet1. DATASET CLOSE DataSet2. GET FILE='E:\MacEwan\Teaching\Stat252\Data\SPSS_data\survey_part.sav'.

More information

GEOP 505/MATH 587 Fall 02 Homework 6

GEOP 505/MATH 587 Fall 02 Homework 6 GEOP 55/MATH 587 Fall 2 Homework 6 In grading these homeworks, I found that the major problem that students had was a misunderstanding of the difference between the original time series z, the differenced

More information

Time Series Studio SAS User s Guide. SAS Documentation

Time Series Studio SAS User s Guide. SAS Documentation SAS 12.3 User s Guide Time Series Studio SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS Time Series Studio 12.3: User's Guide. Cary, NC:

More information

Recurring Payment Quick Reference Guide

Recurring Payment Quick Reference Guide H O M E O W N E R S A S S O C I A T I O N S E R V I C E S Recurring Payment Quick Reference Guide 1. Go to HOABankservices.com. www.hoabankservices.com 2. Click the Make Payment link. 3. Click in the Sign

More information

Things to Know for the Algebra I Regents

Things to Know for the Algebra I Regents Types of Numbers: Real Number: any number you can think of (integers, rational, irrational) Imaginary Number: square root of a negative number Integers: whole numbers (positive, negative, zero) Things

More information

A Statistical Analysis of UK Financial Networks

A Statistical Analysis of UK Financial Networks A Statistical Analysis of UK Financial Networks J. Chu & S. Nadarajah First version: 31 December 2016 Research Report No. 9, 2016, Probability and Statistics Group School of Mathematics, The University

More information

Adaptive spline autoregression threshold method in forecasting Mitsubishi car sales volume at PT Srikandi Diamond Motors

Adaptive spline autoregression threshold method in forecasting Mitsubishi car sales volume at PT Srikandi Diamond Motors IOP Conference Series: Materials Science and Engineering PAPER OPEN ACCESS Adaptive spline autoregression threshold method in forecasting Mitsubishi car sales volume at PT Srikandi Diamond Motors To cite

More information

2. This is a cell; this cell is designated as A1.

2. This is a cell; this cell is designated as A1. Queen s Learning Commons: Microsoft Excel Basics 1. These are the columns. 2. This is a cell; this cell is designated as A1. 3. Let s make a table. Click on the box you want to put text in and simply begin

More information

Package uclaboot. June 18, 2003

Package uclaboot. June 18, 2003 Package uclaboot June 18, 2003 Version 0.1-3 Date 2003/6/18 Depends R (>= 1.7.0), boot, modreg Title Simple Bootstrap Routines for UCLA Statistics Author Maintainer

More information

How to use FSBforecast Excel add in for regression analysis

How to use FSBforecast Excel add in for regression analysis How to use FSBforecast Excel add in for regression analysis FSBforecast is an Excel add in for data analysis and regression that was developed here at the Fuqua School of Business over the last 3 years

More information

Using. Research Wizard. Version 4.0. Copyright 2001, Zacks Investment Research, Inc.,

Using. Research Wizard. Version 4.0. Copyright 2001, Zacks Investment Research, Inc., Using Research Wizard Version 4.0 Copyright 2001, Zacks Investment Research, Inc., Contents Introduction 1 Research Wizard 4.0 Overview...1 Using Research Wizard...1 Guided Tour 2 Getting Started in Research

More information

MetrixND Newsletters Contents List By Topic

MetrixND 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 information

Quick Start Guide Jacob Stolk PhD Simone Stolk MPH November 2018

Quick Start Guide Jacob Stolk PhD Simone Stolk MPH November 2018 Quick Start Guide Jacob Stolk PhD Simone Stolk MPH November 2018 Contents Introduction... 1 Start DIONE... 2 Load Data... 3 Missing Values... 5 Explore Data... 6 One Variable... 6 Two Variables... 7 All

More information

Computer Grade 5. Unit: 1, 2 & 3 Total Periods 38 Lab 10 Months: April and May

Computer Grade 5. Unit: 1, 2 & 3 Total Periods 38 Lab 10 Months: April and May Computer Grade 5 1 st Term Unit: 1, 2 & 3 Total Periods 38 Lab 10 Months: April and May Summer Vacation: June, July and August 1 st & 2 nd week Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 First term (April) Week

More information

ADMS 3330 FALL 2008 EXAM All Multiple choice Exam (See Answer Key on last page)

ADMS 3330 FALL 2008 EXAM All Multiple choice Exam (See Answer Key on last page) MULTIPLE CHOICE. Choose the letter corresponding to the one alternative that best completes the statement or answers the question. 1. Which of the following are assumptions or requirements of the transportation

More information

Heteroscedasticity-Consistent Standard Error Estimates for the Linear Regression Model: SPSS and SAS Implementation. Andrew F.

Heteroscedasticity-Consistent Standard Error Estimates for the Linear Regression Model: SPSS and SAS Implementation. Andrew F. Heteroscedasticity-Consistent Standard Error Estimates for the Linear Regression Model: SPSS and SAS Implementation Andrew F. Hayes 1 The Ohio State University Columbus, Ohio hayes.338@osu.edu Draft: January

More information

Analysis of variance - ANOVA

Analysis of variance - ANOVA Analysis of variance - ANOVA Based on a book by Julian J. Faraway University of Iceland (UI) Estimation 1 / 50 Anova In ANOVAs all predictors are categorical/qualitative. The original thinking was to try

More information

Introduction to R, Github and Gitlab

Introduction to R, Github and Gitlab Introduction to R, Github and Gitlab 27/11/2018 Pierpaolo Maisano Delser mail: maisanop@tcd.ie ; pm604@cam.ac.uk Outline: Why R? What can R do? Basic commands and operations Data analysis in R Github and

More information

Release Notes for April StatCrunch Updates

Release Notes for April StatCrunch Updates Release Notes for April 2018 - StatCrunch Updates Major additions Introducing accessibility features that support full keyboard functionality including new keyboard shortcuts. [Go to page 2] Measures to

More information

An introduction to plotting data

An introduction to plotting data An introduction to plotting data Eric D. Black California Institute of Technology February 25, 2014 1 Introduction Plotting data is one of the essential skills every scientist must have. We use it on a

More information

IT Services Performance Report

IT Services Performance Report UCD IT Services IT Services Performance Report January December 2010 Prepared by: UCD IT Services Date: 9 th February 2011 Ms. Mary Crowe Chief Information and Technology Officer Contents Background 1

More information

Handout #1. The abbreviations of FIVE references are PE, MPS, BR, FCDAE, and PRA. There is additional reference about the use of R (BR).

Handout #1. The abbreviations of FIVE references are PE, MPS, BR, FCDAE, and PRA. There is additional reference about the use of R (BR). Handout #1 Title: FAE Course: Econ 368/01 Spring/2015 Instructor: Dr. I-Ming Chiu The abbreviations of FIVE references are PE, MPS, BR, FCDAE, and PRA. There is additional reference about the use of R

More information

Bus 41202: Analysis of Financial Time Series Spring 2016, Ruey S. Tsay. Pre-class reading assignment: The R Program and Some Packages

Bus 41202: Analysis of Financial Time Series Spring 2016, Ruey S. Tsay. Pre-class reading assignment: The R Program and Some Packages Bus 41202: Analysis of Financial Time Series Spring 2016, Ruey S. Tsay Pre-class reading assignment: The R Program and Some Packages In this note, we briefly introduce the R program to be used extensively

More information

VCEasy VISUAL FURTHER MATHS. Overview

VCEasy VISUAL FURTHER MATHS. Overview VCEasy VISUAL FURTHER MATHS Overview This booklet is a visual overview of the knowledge required for the VCE Year 12 Further Maths examination.! This booklet does not replace any existing resources that

More information

Installation 3. PerTrac Reporting Studio Overview 4. The Report Design Window Overview 8. Designing the Report (an example) 13

Installation 3. PerTrac Reporting Studio Overview 4. The Report Design Window Overview 8. Designing the Report (an example) 13 Contents Installation 3 PerTrac Reporting Studio Overview 4 The Report Design Window Overview 8 Designing the Report (an example) 13 PerTrac Reporting Studio Charts 14 Chart Editing/Formatting 17 PerTrac

More information

Section 3.2: Multiple Linear Regression II. Jared S. Murray The University of Texas at Austin McCombs School of Business

Section 3.2: Multiple Linear Regression II. Jared S. Murray The University of Texas at Austin McCombs School of Business Section 3.2: Multiple Linear Regression II Jared S. Murray The University of Texas at Austin McCombs School of Business 1 Multiple Linear Regression: Inference and Understanding We can answer new questions

More information

The Chart Title can be formatted to change color, pattern, typeface, size and alignment using the Format Chart Title dialog box.

The Chart Title can be formatted to change color, pattern, typeface, size and alignment using the Format Chart Title dialog box. Excel 2003 Formatting a Chart Introduction Page 1 By the end of this lesson, learners should be able to: Format the chart title Format the chart legend Format the axis Formatting the Chart Title Page 2

More information

SOCY7706: Longitudinal Data Analysis Instructor: Natasha Sarkisian. Panel Data Analysis: Fixed Effects Models

SOCY7706: Longitudinal Data Analysis Instructor: Natasha Sarkisian. Panel Data Analysis: Fixed Effects Models SOCY776: Longitudinal Data Analysis Instructor: Natasha Sarkisian Panel Data Analysis: Fixed Effects Models Fixed effects models are similar to the first difference model we considered for two wave data

More information

Sections in this manual

Sections in this manual 1 Sections in this manual Argus Analytics 2 The service 2 Benefits 2 Launching Argus Analytics 3 Search Interface breakdown 4 Add-in Navigation 5 Search: Free text & Facet 5 Search: Facet filter 6 Filters

More information

Client Information - Interim Periods. Interim Period

Client Information - Interim Periods. Interim Period Interim Period Quick Trial Balance Pro can process data for monthly, quarterly, six-month, or annual data. If you are using QTB Pro to process an interim period (monthly, quarterly, or annual) data, you

More information

CHAPTER 3 AN OVERVIEW OF DESIGN OF EXPERIMENTS AND RESPONSE SURFACE METHODOLOGY

CHAPTER 3 AN OVERVIEW OF DESIGN OF EXPERIMENTS AND RESPONSE SURFACE METHODOLOGY 23 CHAPTER 3 AN OVERVIEW OF DESIGN OF EXPERIMENTS AND RESPONSE SURFACE METHODOLOGY 3.1 DESIGN OF EXPERIMENTS Design of experiments is a systematic approach for investigation of a system or process. A series

More information

Introduction to Statistical Analyses in SAS

Introduction to Statistical Analyses in SAS Introduction to Statistical Analyses in SAS Programming Workshop Presented by the Applied Statistics Lab Sarah Janse April 5, 2017 1 Introduction Today we will go over some basic statistical analyses in

More information

Time Series Analysis DM 2 / A.A

Time Series Analysis DM 2 / A.A DM 2 / A.A. 2010-2011 Time Series Analysis Several slides are borrowed from: Han and Kamber, Data Mining: Concepts and Techniques Mining time-series data Lei Chen, Similarity Search Over Time-Series Data

More information

Chapter 15: Forecasting

Chapter 15: Forecasting Chapter 15: Forecasting In this chapter: 1. Forecasting chicken consumption using OLS (UE 15.1, Equation 6.8, p. 501) 2. Forecasting chicken consumption using a generalized least squares (GLS) model estimated

More information

Regression Analysis and Linear Regression Models

Regression Analysis and Linear Regression Models Regression Analysis and Linear Regression Models University of Trento - FBK 2 March, 2015 (UNITN-FBK) Regression Analysis and Linear Regression Models 2 March, 2015 1 / 33 Relationship between numerical

More information

ScrimmageSim Business Simulation Ordering Exercise Instructions

ScrimmageSim Business Simulation Ordering Exercise Instructions ScrimmageSim Business Simulation Ordering Exercise Instructions Summary: Tenant: 500 User: in the grades section of elearning Password: password Demand: 10 cases with standard deviation of 1 case Ordering

More information

Year 10 General Mathematics Unit 2

Year 10 General Mathematics Unit 2 Year 11 General Maths Year 10 General Mathematics Unit 2 Bivariate Data Chapter 4 Chapter Four 1 st Edition 2 nd Edition 2013 4A 1, 2, 3, 4, 6, 7, 8, 9, 10, 11 1, 2, 3, 4, 6, 7, 8, 9, 10, 11 2F (FM) 1,

More information