GTVD : A RATS procedure to estimate Smooth Transition Regressions with Panel Data

Size: px
Start display at page:

Download "GTVD : A RATS procedure to estimate Smooth Transition Regressions with Panel Data"

Transcription

1 1 1

2 GTVD : A RATS procedure to estimate Smooth Transition Regressions with Panel Data G. Colletaz Laboratoire d Economie d Orléans, Université d Orléans, France gilbert.colletaz@univ-orleans.fr 1 Thanks to Christophe Hurlin for numerous discussions. Interested Matlab users may ask him for a practically equivalent program which runs under this software.

3 Abstract GTVD.SRC can be used with RATS software to estimate Smooth Transition Regressions with Panel Data following the recommendations given by Gonzáles, Teräsvirta and van Dick (2004). This paper exposes the model, the estimation and testing schemes and documents the various options actually available.

4 Chapter 1 The Panel Smooth Transition Regression model 1.1 The estimated structure The basic PSTR model is of the form: y it = µ i + β 0x it + β 1x it g(q it ; γ; c) + u it (1.1) for i = 1,..., N and t = 1,..., T. y it is a scalar, µ i is an unobservable timeinvariant regressor, x it is a k-dimensional vector of time-varying exogenous variables, q it is an observable transition variable and u it are the residuals. g() is a continuous bounded function of q it defined by: g(q it ; γ; c) = (1 + exp( γ m (q it c j ))) 1, γ > 0, c 1... c m (1.2) j=1 where c = (c 1,..., c m ) is a m-dimensional vector of location parameters, γ is the slope of the transition function, and γ > 0, c 1... c m are identification restrictions. The version that can be estimated via the proc PSTR is a generalization of this basic structure. It allows for r transition functions based on eventually different transition variables each with their owned vector of location parameters. Moreover, it is also possible to consider exogenous variables with constant coefficients α 0. This additive generalization has the following form: y it = µ i + β 0x it + r j=1 β jx it g j (q (j) it ; γ j; c j ) + α 0z it + u it (1.3) 1

5 and, m g j (q j it ; γ j j; c j ) = (1 + exp( γ j k=1 (q (j) it c j,k ))) 1 (1.4) 1.2 Estimation of parameters Details can be found in the paper by Gonzáles, Teräsvirta and van Dick. Here we keep the description of the estimation phase to a minimum that is sufficient to run the proc. However, reading the cited paper is a necessary condition to understand exactly what you are doing (and in particular to have a knowledge of the maintained hypothesis under which this estimation is supposed to be valid). Estimation is conducted in 2 steps : elimination of the individual effects and successive applications of OLS and NLLS to the transformed variables. 1. removing the fixed effects suppression of the µ i is done classically by centering the variables on their individual means. 2. estimation of remaining parameters with NLLS If the slopes of the transition functions, γ j, and the location parameters, c j, enter non linearly in the model this is not the case for the coefficients β and α. Thus for given values of γ j and c j an OLS regression gives estimates of β and α. With these estimates we can then search for the values of γ j and c j that minimize the residual sum of squares using a NLLS algorithm (here we use the bfgs algorithm available with the RATS instruction find). The process is repeated until convergence for the whole vector of parameters. However the convergence issue is greatly dependant upon the chosen starting values of β and α. 1.3 Choosing the starting values This is normally done by mean of a grid search, i.e. a selection of initial values for the slopes γ j and the location parameters c j, j = 1,..., r. 1. initial values for γ j User simply provides a list of possible positive values. 2. initial values for c j User selects a number of values to fill the vector c j such that min(c j,k ) > min(q (j) it ) and max(c j,k) < max(q (j) it ) for k = 1,..., m j and j = 1,..., r. To ensure that a sufficient number of observations of the transition variable are available for estimation in each side of a given location parameter, the values of min(c j,k ) and max(c j,k ) are constrained by a trimming over the observations of q (j) it, i.e. the range for the initial c j,k leaves aside a certain number of smaller and greater observations of the transition variable. 2

6 Given these grids, OLS regressions are performed for all combinations of the initial values to estimate the corresponding β and α. The vector for which the residual sum of squares is minimal is then passed as starting value for the realization of the second step of the estimation process described at the preceding point. In case of difficulties it may be a good idea to increase the number of grid values. In any case it is certainly a good idea to try different starting values choosing different specifications for the construction of these grid. Note also that if the convergence is not obtained at the end of this process, then the proc PSTR switch automatically to a simplex optimization in order to obtain new starting values for the NLLS algorithm. 1.4 Tests of linearity against PSTR 1. Before estimation of any nonlinear form If we start with the basic structure of the PSTR model given by (1.1) then a linear model is obtained by imposing γ = 0 or β 1 = 0. Whatever the chosen solution, the test will then be nonstandard due to the presence of unidentified parameters under the null. One solution adopted by Gonzáles, Teräsvirta and van Dick (2004) is to replace g() by a first-order Taylor expansion around γ = 0. This leads to an auxiliary regression: y it = µ i + β 0 x it + β 1 x it q it + + β mx it q m it + u it (1.5) Testing γ = 0 in (1.1 is then equivalent to testing β 1 = beta m = 0 in (1.5). If we compute the residual sum of squares of (1.5) estimated by OLS (after the individual-specific means have been remove ), SSR 0, and the residual sum of squares given by estimation of (1.1) then two tests can be computed : a LM one and its F-version: LM = T N(SSR 0 SSR 1 )/SSR 0 (1.6) F = (SSR 0 SSR 1 )/mk/ssr 1 /(T N N mk) (1.7) which under the null have respectively χ 2 mk and F (mk, T N N mk) distributions. In addition to these LM and F tests, the proc PSTR compute a pseudo-lrt given by : pseudo LRT = 2log(SSR 1 /SSR 0 ) (1.8) having a χ 2 mk distribution under the null hypothesis. 2. After estimation of at least one transition function The question is then the existence of remaining nonlinearity. We follow GTvD and illustrate the construction of the test with an example. Suppose 3

7 that you estimate a model with one transition function (r=1 in equation (1.3)): y it = µ i + β 0x it + β 1x it g 1 (q (1) it ; γ 1; c 1 ) + α 0z it + u it (1.9) and that you now think about the addition of a second one. The model to be considered is then: y it = µ i + β 0x it + β 1x it g 1 (q (1) it ; γ 1; c 1 ) + β 2x it g 2 (q (2) it ; γ 2; c 2 ) + α 0z it + u it (1.10) where eventually q (1) it = q (2) it. As before, the test consider the slope of the second transition function and the null hypothesis is then H0 : γ 2 = 0. Again a first-order Taylor expansion around γ 2 = 0 leads to an auxiliary regression: y it = µ i +β 0 x it +β 1x it g 1 (q (1) it ; γ 1; c 1 )+β 21x it q it + +β 2mx it q m it +α 0z it +u it (1.11) With this approximation the test is now H0 : β 21 =... = β 2m = 0 Based on the residual sum of squares given by the estimations of (1.11) and (1.9) one can construct LM, F tests as explained before. Note however that in the paper by Gonzáles, Teräsvirta and van Dick the estimation of (1.11) is made conditionally upon the values of γ 1 and c 1 given by the adjustment of (1.9). The procedure PSTR gives the results so obtained, but it also gives those obtained after a unconstrained re-estimation of (1.11) allowing in particular new optimal estimates for γ 1 and c 1. It also prints a pseudo-lrt statistics. 4

8 Chapter 2 Instructions This part lists the various options that can be specified and the syntax of the call to the proc. It also gives some calling examples. 2.1 Calling the procedure Data must be described using instructions allocate and calendar according to the panel data structure of RATS. Call to the procedure is then done with a standard syntax : proc gtvd depvar #x1 x2 #q1 q2 #z1 z2 Where depvar is the name of the dependent variable, x1 x2 are the name of the exogenous variables upon which the transition functions are active, q1 q2 are the name of the transition variables and z1 z2 are exogenous variables with constant coefficients. 2.2 Specifying the transitions The number of transition functions, r, is equal to the number of transition variables. Hence #q1 q1 defines two functions each having q1 as argument transition. m = m is a vector having r components giving the number of restrictions to 5

9 be put on the transition functions. For example m= 3, 2 applies to two transition functions, the first one having 3 restrictions and the second having 2 restrictions. In this case we must have two transition variables in the call to the proc. Note that it is obligatory to specify the contents of this vector. rc = rc specifies the number of transition functions that must be incorporated in one unique estimated model. If rc is not specified then the proc implements a sequential treatment. For example #q1 q2 asks for the estimation of a model having q1 as transition variable and then for the estimation of a model having q1 and q2 as transition variables. In this case the number of transition variables must be equal to the dimension of the vector m. If rc is specified then only the model with rc transition variables is estimated and the dimension of vector m must be at least rc. If the number of transition variables specified in the calling is greater than rc then linearity tests versus PSTR are realized within the estimated model and this is done successively for each variable in excess in the list (these tests are realized only conditionally to the value of the option mlin, see below). If rc is used then its value must be strictly positive. 2.3 Specific exogenous variables exoz = If exogenous variables of type z are present, i.e. if some independent variables having constant coefficients are used then the user must indicate exoz = 1. In this case their names are read on the third supplementary card. If exoz = 0 or if exoz is not specified then this third card must not be present in the call to the proc. 2.4 estimation : initial values of parameters and trimming Given the slopes of the transition functions and the location parameters, others coefficients are estimated by minimizing the sum of squared residuals. The values that minimize the overall sum of squared residuals are used as startingvalues of the estimation algorithm based on BFGS. Following options are used to specify array of numbers for slopes and location parameters upon which the search of these starting values is undertaken. methodini = simplex / [genetic] / grid This option specifies the way the proc find optimal initial values of various parameters before switching the a bfgs algorithm. With methodini=grid initial values for the slopes and the restriction parameters are taken in 6

10 grids defined by options grilleg and nbvalinic. In this case all combinations of these values are tried in order to find those associated with the minimal Residuals Sum of Squares. Even if the proc takes into account the ordered structure of the restriction parameters, this can lead to an enormous number of initial regressions and can be very much time consuming. When methodini=simplex or methodini=genetic, only one value of the slope parameter is considered for each of the transition functions, values of the restrictions parameters being always given by the option nbvalinic: Given the slope of the functions, the proc does initial regressions in order to find optimal initial restrictions parameters, but the number of the initial regressions is gretly reduces, and then switch to a simplex or a genetic algorithm to find initial values of parameters passed to the bfgs algorithm. grilleg = Vector specifying an array of positive values for the slopes of the transition functions. Use of these values depends on the method specified for finding optimal initial values before switching to the bfgs optimisation, i.e., on the choice made for the option methodini. When methodini=grid the same vector is used for each of these functions and all its components are successively tried. Default values are, without any particular justification: grilleg = The number of grid values is determined by the dimension of the vector and thus can be arbitrarily fixed by the user. For example, grilleg = search for a starting value in a list of only three potential numbers before going to a bfgs optimization. When methodini=simplex or methodini=genetic the dimension of grilleg is simply equal to the number of transition functions and its ith component is the initial value of the slope parameter for the ith transition function. By default, grilleg is taken in this case, again without any particular justification, as a random realization of pseudo-uniform numbers over [0.2,3.5]. nbvalinic = Integer that gives the number initial values to be considered in the grid for each restriction parameters. Values themselves are taken at regular intervals among the observations of the corresponding transition variable. Observations corresponding to trimc and (1 trimc) are selected so that nbvalinic must be greater or equal to 2. The default value corresponds to nbvalinic =10. trimc = It gives the percentage of observations used for the trimming applied to the transition variables. The default value is trimc=.15. For example, this default value consider initial values for the restriction parameter from the 15%-tile (included) to the 85%-tile (included) of the corresponding transition variable, and in this range the proc takes nbvalinic 2 other values with equal spacing. 7

11 piters = This integer indicates the number of iterations to be realized with the simplex or the genetic algorithm chosen according to the option methodini. By default, piters = 6. If the simplex or the genetic method converges then its solutions are taken as initial values for a bfgs optimization. 2.5 linearity tests and tests of parameter constancy mlin = Integer which gives the maximum power to be considered in the auxiliary regression derived from a Taylor expansion of the initial representation. mlin is the value of the parameter m in equations (1.5) or (1.11). This Taylor development is made for the last transition variable of the adjusted equation. Fox example, if rc is not specified, then at the first step it corresponds to the first variable in the list q1 q2. If mlin = 0 (which is the default value) then the test of linearity against PSTR is not realized. mh = Integer which gives the maximum power to be considered in the auxiliary regression used to test the parameter constancy against the hypothesis of a smooth change from one regime to another (corresponding to the socalled TV-PSTR model). If mh = 0 (which is the default value) then this test is not done. graphd = Yes / [No] If graphd = Yes, the proc evaluates the derivatives relative to variables x1 x2 and plots the results. Actually formulas suppose that none of these variables is used as transition variables, i.e. x i q j i, j. Results are given for each individual at any point of time. Moreover the proc prints, for each individual, the mean of these derivatives over all time periods. name = Specifies the name of every individual in the construction of the preceeding graphs. The order of these names must match the order of the entry in the data file. If not specified, individuals are named by their order of apparition in this file, i.e; (1,2,3,...). 2.6 = 2 ) y #x #q 8

12 requests estimation of the model: y it = µ i + β 0 x it + β 1 x it (1 + exp( γ all options are taken their default = 1, 1, nbvalinic = 20) y #x #q q 2 (q it c j ))) 1 + u it (2.1) j=1 requests successive estimations of models: and, y it = µ i + β 0 x it + β 1 x it (1 + exp( γ(q it c 1 ))) 1 + u it (2.2) y it = µ i +β 0 x it +β 1 x it (1+exp( γ 1 (q it c 1 ))) 1 +β 2 x it (1+exp( γ 2 (q it c 2 ))) 1 +u it (2.3) Linearity tests with m = 1, 2 are realized before estimation of the first model (here redundant results are given as q is repeated) and after. Note that for the second model the grid search imposes 40, 000 OLS adjustments in order to find initial = 1, nbvalinic = 20, mh = 0, mlin = 4, exoz = 1, rc = 1) y #x #q #z requests estimation of the model: y it = µ i + β 0 x it + β 1 x it (1 + exp( γ(q it c 1 ))) 1 + α 0 z it + u it (2.4) before estimation it does tests of linearity successively for q and x. After estimation it does tests of remaining linearity for x. These tests are realized for m = 1, 2, 3, 4 in equations (1.5) or (1.11). Tests of parameters constancy are not made (the same result if we omit the option mh=0). The grid search for c 1 is made over 20 = 1, 1, nbvalinic = 5, methodini = genetic, grilleg =.8.3, rc = 2) y #x #q q requests estimation of the model: y it = µ i +β 0 x it +β 1 x it (1+exp( γ 1 (q it c 1 ))) 1 +β 2 x it (1+exp( γ 2 (q it c 2 ))) 1 +u it (2.5) 9

13 before doing a bfgs optimization, this calls for a genetic optimization for which initial values are respectively 0.8 and 0.3 for the slope parameters of the two transition functions and initial values of the restriction parameters are found among five numbers selected by means of OLS regressions. 10

Estimation of Panel Smooth Transition Regression Models - A RATS Procedure PSTR.SRC

Estimation of Panel Smooth Transition Regression Models - A RATS Procedure PSTR.SRC Estimation of Panel Smooth Transition Regression Models - A RATS Procedure PSTR.SRC Gilbert Colletaz February 7, 2018 Abstract This document only describes the referenced RATS program. A prerequisite for

More information

News Shocks: Different Effects in Boom and Recession?

News Shocks: Different Effects in Boom and Recession? News Shocks: Different Effects in Boom and Recession? Maria Bolboaca, Sarah Fischer University of Bern Study Center Gerzensee June 7, 5 / Introduction News are defined in the literature as exogenous changes

More information

Sociology 593 Exam 1 Answer Key February 17, 1995

Sociology 593 Exam 1 Answer Key February 17, 1995 Sociology 593 Exam 1 Answer Key February 17, 1995 I. True-False. (5 points) Indicate whether the following statements are true or false. If false, briefly explain why. 1. A researcher regressed Y on. When

More information

DOCUMENTS DE TRAVAIL CEMOI / CEMOI WORKING PAPERS

DOCUMENTS DE TRAVAIL CEMOI / CEMOI WORKING PAPERS DOCUMENTS DE TRAVAIL CEMOI / CEMOI WORKING PAPERS A SAS macro for estimation and inference in differences-in-differences applications with only a few treated groups Nicolas Moreau 1 http://cemoi.univ-reunion.fr

More information

Threshold Autoregressions and NonLinear Autoregressions

Threshold Autoregressions and NonLinear Autoregressions Threshold Autoregressions and NonLinear Autoregressions Original Presentation: Central Bank of Chile October 29-31, 2013 Bruce Hansen (University of Wisconsin) Threshold Regression 1 / 47 Threshold Models

More information

The Feldstein-Horioka Puzzle: a Panel Smooth Transition Regression Approach

The Feldstein-Horioka Puzzle: a Panel Smooth Transition Regression Approach The Feldstein-Horioka Puzzle: a Panel Smooth Transition Regression Approach Julien Fouquau, Christophe Hurlin and Isabelle Rabaud January 2007 Abstract This paper proposes an original framework to determine

More information

Exercises Chapter 4 Statistical Hypothesis Testing

Exercises Chapter 4 Statistical Hypothesis Testing Exercises Chapter 4 Statistical Hypothesis Testing Advanced Econometrics - HEC Lausanne Christophe Hurlin University of Orléans December 5, 013 Christophe Hurlin (University of Orléans) Advanced Econometrics

More information

Automatic Forecasting

Automatic Forecasting Automatic Forecasting Summary The Automatic Forecasting procedure is designed to forecast future values of time series data. A time series consists of a set of sequential numeric data taken at equally

More information

Multidisciplinary System Design Optimization (MSDO)

Multidisciplinary System Design Optimization (MSDO) Multidisciplinary System Design Optimization (MSDO) Numerical Optimization II Lecture 8 Karen Willcox 1 Massachusetts Institute of Technology - Prof. de Weck and Prof. Willcox Today s Topics Sequential

More information

GMM Estimation in Stata

GMM Estimation in Stata GMM Estimation in Stata Econometrics I Department of Economics Universidad Carlos III de Madrid Master in Industrial Economics and Markets 1 Outline Motivation 1 Motivation 2 3 4 2 Motivation 3 Stata and

More information

School of Mathematical Sciences. Question 1

School of Mathematical Sciences. Question 1 School of Mathematical Sciences MTH5120 Statistical Modelling I Practical 8 and Assignment 7 Solutions Question 1 Figure 1: The residual plots do not contradict the model assumptions of normality, constant

More information

Interpreting Regression Results

Interpreting Regression Results Interpreting Regression Results Carlo Favero Favero () Interpreting Regression Results 1 / 42 Interpreting Regression Results Interpreting regression results is not a simple exercise. We propose to split

More information

Econometrics II - EXAM Outline Solutions All questions have 25pts Answer each question in separate sheets

Econometrics II - EXAM Outline Solutions All questions have 25pts Answer each question in separate sheets Econometrics II - EXAM Outline Solutions All questions hae 5pts Answer each question in separate sheets. Consider the two linear simultaneous equations G with two exogeneous ariables K, y γ + y γ + x δ

More information

0.1 factor.ord: Ordinal Data Factor Analysis

0.1 factor.ord: Ordinal Data Factor Analysis 0.1 factor.ord: Ordinal Data Factor Analysis Given some unobserved explanatory variables and observed ordinal dependent variables, this model estimates latent factors using a Gibbs sampler with data augmentation.

More information

Topic 7: Heteroskedasticity

Topic 7: Heteroskedasticity Topic 7: Heteroskedasticity Advanced Econometrics (I Dong Chen School of Economics, Peking University Introduction If the disturbance variance is not constant across observations, the regression is heteroskedastic

More information

Panel Smooth Transition Regression Models

Panel Smooth Transition Regression Models QUANTITATIVE FINANCE RESEARCH CENTRE QUANTITATIVE FINANCE RESEARCH CENTRE Research Paper 165 August 2005 Panel Smooth Transition Regression Models Andrés González, Timo Teräsvirta and Dick van Dijk ISSN

More information

Modeling Nonlinearities in Interest Rate Setting

Modeling Nonlinearities in Interest Rate Setting The United Kingdom 1970:2006 riedel@wiwi.hu-berlin.de Institut für Statistik and Ökonometrie, C2 Humboldt-Universität zu Berlin June 27, 2007 Aim Estimation of an augmented Taylor Rule for interest rates

More information

Chapter 5. Introduction to Path Analysis. Overview. Correlation and causation. Specification of path models. Types of path models

Chapter 5. Introduction to Path Analysis. Overview. Correlation and causation. Specification of path models. Types of path models Chapter 5 Introduction to Path Analysis Put simply, the basic dilemma in all sciences is that of how much to oversimplify reality. Overview H. M. Blalock Correlation and causation Specification of path

More information

Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares

Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares Wooldridge, Introductory Econometrics, 4th ed. Chapter 15: Instrumental variables and two stage least squares Many economic models involve endogeneity: that is, a theoretical relationship does not fit

More information

LM threshold unit root tests

LM threshold unit root tests Lee, J., Strazicich, M.C., & Chul Yu, B. (2011). LM Threshold Unit Root Tests. Economics Letters, 110(2): 113-116 (Feb 2011). Published by Elsevier (ISSN: 0165-1765). http://0- dx.doi.org.wncln.wncln.org/10.1016/j.econlet.2010.10.014

More information

1. The Multivariate Classical Linear Regression Model

1. The Multivariate Classical Linear Regression Model Business School, Brunel University MSc. EC550/5509 Modelling Financial Decisions and Markets/Introduction to Quantitative Methods Prof. Menelaos Karanasos (Room SS69, Tel. 08956584) Lecture Notes 5. The

More information

Linear Models in Econometrics

Linear Models in Econometrics Linear Models in Econometrics Nicky Grant At the most fundamental level econometrics is the development of statistical techniques suited primarily to answering economic questions and testing economic theories.

More information

4:3 LEC - PLANNED COMPARISONS AND REGRESSION ANALYSES

4:3 LEC - PLANNED COMPARISONS AND REGRESSION ANALYSES 4:3 LEC - PLANNED COMPARISONS AND REGRESSION ANALYSES FOR SINGLE FACTOR BETWEEN-S DESIGNS Planned or A Priori Comparisons We previously showed various ways to test all possible pairwise comparisons for

More information

Instrumental variables estimation using heteroskedasticity-based instruments

Instrumental variables estimation using heteroskedasticity-based instruments Instrumental variables estimation using heteroskedasticity-based instruments Christopher F Baum, Arthur Lewbel, Mark E Schaffer, Oleksandr Talavera Boston College/DIW Berlin, Boston College, Heriot Watt

More information

Title. Description. Quick start. Menu. stata.com. xtcointtest Panel-data cointegration tests

Title. Description. Quick start. Menu. stata.com. xtcointtest Panel-data cointegration tests Title stata.com xtcointtest Panel-data cointegration tests Description Quick start Menu Syntax Options Remarks and examples Stored results Methods and formulas References Also see Description xtcointtest

More information

LAB 3 INSTRUCTIONS SIMPLE LINEAR REGRESSION

LAB 3 INSTRUCTIONS SIMPLE LINEAR REGRESSION LAB 3 INSTRUCTIONS SIMPLE LINEAR REGRESSION In this lab you will first learn how to display the relationship between two quantitative variables with a scatterplot and also how to measure the strength of

More information

Spatial Regression. 9. Specification Tests (1) Luc Anselin. Copyright 2017 by Luc Anselin, All Rights Reserved

Spatial Regression. 9. Specification Tests (1) Luc Anselin.   Copyright 2017 by Luc Anselin, All Rights Reserved Spatial Regression 9. Specification Tests (1) Luc Anselin http://spatial.uchicago.edu 1 basic concepts types of tests Moran s I classic ML-based tests LM tests 2 Basic Concepts 3 The Logic of Specification

More information

Introduction to Structural Equation Modeling

Introduction to Structural Equation Modeling Introduction to Structural Equation Modeling Notes Prepared by: Lisa Lix, PhD Manitoba Centre for Health Policy Topics Section I: Introduction Section II: Review of Statistical Concepts and Regression

More information

Lab 1 Uniform Motion - Graphing and Analyzing Motion

Lab 1 Uniform Motion - Graphing and Analyzing Motion Lab 1 Uniform Motion - Graphing and Analyzing Motion Objectives: < To observe the distance-time relation for motion at constant velocity. < To make a straight line fit to the distance-time data. < To interpret

More information

Chapte The McGraw-Hill Companies, Inc. All rights reserved.

Chapte The McGraw-Hill Companies, Inc. All rights reserved. 12er12 Chapte Bivariate i Regression (Part 1) Bivariate Regression Visual Displays Begin the analysis of bivariate data (i.e., two variables) with a scatter plot. A scatter plot - displays each observed

More information

A Course in Applied Econometrics Lecture 14: Control Functions and Related Methods. Jeff Wooldridge IRP Lectures, UW Madison, August 2008

A Course in Applied Econometrics Lecture 14: Control Functions and Related Methods. Jeff Wooldridge IRP Lectures, UW Madison, August 2008 A Course in Applied Econometrics Lecture 14: Control Functions and Related Methods Jeff Wooldridge IRP Lectures, UW Madison, August 2008 1. Linear-in-Parameters Models: IV versus Control Functions 2. Correlated

More information

A Course in Applied Econometrics Lecture 7: Cluster Sampling. Jeff Wooldridge IRP Lectures, UW Madison, August 2008

A Course in Applied Econometrics Lecture 7: Cluster Sampling. Jeff Wooldridge IRP Lectures, UW Madison, August 2008 A Course in Applied Econometrics Lecture 7: Cluster Sampling Jeff Wooldridge IRP Lectures, UW Madison, August 2008 1. The Linear Model with Cluster Effects 2. Estimation with a Small Number of roups and

More information

Bivariate Data: Graphical Display The scatterplot is the basic tool for graphically displaying bivariate quantitative data.

Bivariate Data: Graphical Display The scatterplot is the basic tool for graphically displaying bivariate quantitative data. Bivariate Data: Graphical Display The scatterplot is the basic tool for graphically displaying bivariate quantitative data. Example: Some investors think that the performance of the stock market in January

More information

First Year Examination Department of Statistics, University of Florida

First Year Examination Department of Statistics, University of Florida First Year Examination Department of Statistics, University of Florida August 20, 2009, 8:00 am - 2:00 noon Instructions:. You have four hours to answer questions in this examination. 2. You must show

More information

Multiple Linear Regression CIVL 7012/8012

Multiple Linear Regression CIVL 7012/8012 Multiple Linear Regression CIVL 7012/8012 2 Multiple Regression Analysis (MLR) Allows us to explicitly control for many factors those simultaneously affect the dependent variable This is important for

More information

Ratio of Polynomials Fit One Variable

Ratio of Polynomials Fit One Variable Chapter 375 Ratio of Polynomials Fit One Variable Introduction This program fits a model that is the ratio of two polynomials of up to fifth order. Examples of this type of model are: and Y = A0 + A1 X

More information

Instruction. Student Activities Overview and Answer Key

Instruction. Student Activities Overview and Answer Key Instruction Goal: To provide opportunities for students to develop concepts and skills related to solving systems of linear equations using substitution Common Core Standards Analyze and solve linear equations

More information

Ratio of Polynomials Fit Many Variables

Ratio of Polynomials Fit Many Variables Chapter 376 Ratio of Polynomials Fit Many Variables Introduction This program fits a model that is the ratio of two polynomials of up to fifth order. Instead of a single independent variable, these polynomials

More information

ECON2285: Mathematical Economics

ECON2285: Mathematical Economics ECON2285: Mathematical Economics Yulei Luo FBE, HKU September 2, 2018 Luo, Y. (FBE, HKU) ME September 2, 2018 1 / 35 Course Outline Economics: The study of the choices people (consumers, firm managers,

More information

Ratio of Polynomials Search One Variable

Ratio of Polynomials Search One Variable Chapter 370 Ratio of Polynomials Search One Variable Introduction This procedure searches through hundreds of potential curves looking for the model that fits your data the best. The procedure is heuristic

More information

Unit 6. Systems of Linear Equations. 3 weeks

Unit 6. Systems of Linear Equations. 3 weeks Unit 6 Systems of Linear Equations 3 weeks Unit Content Investigation 1: Solving Systems of Linear Equations (3 days) Investigation 2: Solving Systems of Linear Equations by Substitution (4 days) Investigation

More information

Motivation for multiple regression

Motivation for multiple regression Motivation for multiple regression 1. Simple regression puts all factors other than X in u, and treats them as unobserved. Effectively the simple regression does not account for other factors. 2. The slope

More information

MLMED. User Guide. Nicholas J. Rockwood The Ohio State University Beta Version May, 2017

MLMED. User Guide. Nicholas J. Rockwood The Ohio State University Beta Version May, 2017 MLMED User Guide Nicholas J. Rockwood The Ohio State University rockwood.19@osu.edu Beta Version May, 2017 MLmed is a computational macro for SPSS that simplifies the fitting of multilevel mediation and

More information

II. Linear Models (pp.47-70)

II. Linear Models (pp.47-70) Notation: Means pencil-and-paper QUIZ Means coding QUIZ Agree or disagree: Regression can be always reduced to classification. Explain, either way! A certain classifier scores 98% on the training set,

More information

MATH 3795 Lecture 13. Numerical Solution of Nonlinear Equations in R N.

MATH 3795 Lecture 13. Numerical Solution of Nonlinear Equations in R N. MATH 3795 Lecture 13. Numerical Solution of Nonlinear Equations in R N. Dmitriy Leykekhman Fall 2008 Goals Learn about different methods for the solution of F (x) = 0, their advantages and disadvantages.

More information

The scatterplot is the basic tool for graphically displaying bivariate quantitative data.

The scatterplot is the basic tool for graphically displaying bivariate quantitative data. Bivariate Data: Graphical Display The scatterplot is the basic tool for graphically displaying bivariate quantitative data. Example: Some investors think that the performance of the stock market in January

More information

STRUCTURAL EQUATION MODELING. Khaled Bedair Statistics Department Virginia Tech LISA, Summer 2013

STRUCTURAL EQUATION MODELING. Khaled Bedair Statistics Department Virginia Tech LISA, Summer 2013 STRUCTURAL EQUATION MODELING Khaled Bedair Statistics Department Virginia Tech LISA, Summer 2013 Introduction: Path analysis Path Analysis is used to estimate a system of equations in which all of the

More information

2 Prediction and Analysis of Variance

2 Prediction and Analysis of Variance 2 Prediction and Analysis of Variance Reading: Chapters and 2 of Kennedy A Guide to Econometrics Achen, Christopher H. Interpreting and Using Regression (London: Sage, 982). Chapter 4 of Andy Field, Discovering

More information

Partial effects in fixed effects models

Partial effects in fixed effects models 1 Partial effects in fixed effects models J.M.C. Santos Silva School of Economics, University of Surrey Gordon C.R. Kemp Department of Economics, University of Essex 22 nd London Stata Users Group Meeting

More information

Example. 1 Rows 1,..., m of the simplex tableau remain lexicographically positive

Example. 1 Rows 1,..., m of the simplex tableau remain lexicographically positive 3.4 Anticycling Lexicographic order In this section we discuss two pivoting rules that are guaranteed to avoid cycling. These are the lexicographic rule and Bland s rule. Definition A vector u R n is lexicographically

More information

WISE International Masters

WISE International Masters WISE International Masters ECONOMETRICS Instructor: Brett Graham INSTRUCTIONS TO STUDENTS 1 The time allowed for this examination paper is 2 hours. 2 This examination paper contains 32 questions. You are

More information

Postestimation commands predict estat Remarks and examples Stored results Methods and formulas

Postestimation commands predict estat Remarks and examples Stored results Methods and formulas Title stata.com mswitch postestimation Postestimation tools for mswitch Postestimation commands predict estat Remarks and examples Stored results Methods and formulas References Also see Postestimation

More information

Linear Algebra: A Constructive Approach

Linear Algebra: A Constructive Approach Chapter 2 Linear Algebra: A Constructive Approach In Section 14 we sketched a geometric interpretation of the simplex method In this chapter, we describe the basis of an algebraic interpretation that allows

More information

Describing the Relationship between Two Variables

Describing the Relationship between Two Variables 1 Describing the Relationship between Two Variables Key Definitions Scatter : A graph made to show the relationship between two different variables (each pair of x s and y s) measured from the same equation.

More information

Research Statement. Zhongwen Liang

Research Statement. Zhongwen Liang Research Statement Zhongwen Liang My research is concentrated on theoretical and empirical econometrics, with the focus of developing statistical methods and tools to do the quantitative analysis of empirical

More information

Econometrics Summary Algebraic and Statistical Preliminaries

Econometrics Summary Algebraic and Statistical Preliminaries Econometrics Summary Algebraic and Statistical Preliminaries Elasticity: The point elasticity of Y with respect to L is given by α = ( Y/ L)/(Y/L). The arc elasticity is given by ( Y/ L)/(Y/L), when L

More information

Homework #2 Due Monday, April 18, 2012

Homework #2 Due Monday, April 18, 2012 12.540 Homework #2 Due Monday, April 18, 2012 Matlab solution codes are given in HW02_2012.m This code uses cells and contains the solutions to all the questions. Question 1: Non-linear estimation problem

More information

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations

A First Course on Kinetics and Reaction Engineering Supplemental Unit S5. Solving Initial Value Differential Equations Supplemental Unit S5. Solving Initial Value Differential Equations Defining the Problem This supplemental unit describes how to solve a set of initial value ordinary differential equations (ODEs) numerically.

More information

A SAS/AF Application For Sample Size And Power Determination

A SAS/AF Application For Sample Size And Power Determination A SAS/AF Application For Sample Size And Power Determination Fiona Portwood, Software Product Services Ltd. Abstract When planning a study, such as a clinical trial or toxicology experiment, the choice

More information

Chapter 2. Dynamic panel data models

Chapter 2. Dynamic panel data models Chapter 2. Dynamic panel data models School of Economics and Management - University of Geneva Christophe Hurlin, Université of Orléans University of Orléans April 2018 C. Hurlin (University of Orléans)

More information

Threshold models: Basic concepts and new results

Threshold models: Basic concepts and new results Threshold models: Basic concepts and new results 1 1 Department of Economics National Taipei University PCCU, Taipei, 2009 Outline 1 2 3 4 5 6 1 Structural Change Model (Chow 1960; Bai 1995) 1 Structural

More information

Homoskedasticity. Var (u X) = σ 2. (23)

Homoskedasticity. Var (u X) = σ 2. (23) Homoskedasticity How big is the difference between the OLS estimator and the true parameter? To answer this question, we make an additional assumption called homoskedasticity: Var (u X) = σ 2. (23) This

More information

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data

Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data Recent Advances in the Field of Trade Theory and Policy Analysis Using Micro-Level Data July 2012 Bangkok, Thailand Cosimo Beverelli (World Trade Organization) 1 Content a) Classical regression model b)

More information

The Linear Regression Model

The Linear Regression Model The Linear Regression Model Carlo Favero Favero () The Linear Regression Model 1 / 67 OLS To illustrate how estimation can be performed to derive conditional expectations, consider the following general

More information

G. S. Maddala Kajal Lahiri. WILEY A John Wiley and Sons, Ltd., Publication

G. S. Maddala Kajal Lahiri. WILEY A John Wiley and Sons, Ltd., Publication G. S. Maddala Kajal Lahiri WILEY A John Wiley and Sons, Ltd., Publication TEMT Foreword Preface to the Fourth Edition xvii xix Part I Introduction and the Linear Regression Model 1 CHAPTER 1 What is Econometrics?

More information

Repeated observations on the same cross-section of individual units. Important advantages relative to pure cross-section data

Repeated observations on the same cross-section of individual units. Important advantages relative to pure cross-section data Panel data Repeated observations on the same cross-section of individual units. Important advantages relative to pure cross-section data - possible to control for some unobserved heterogeneity - possible

More information

Time Series and Forecasting Lecture 4 NonLinear Time Series

Time Series and Forecasting Lecture 4 NonLinear Time Series Time Series and Forecasting Lecture 4 NonLinear Time Series Bruce E. Hansen Summer School in Economics and Econometrics University of Crete July 23-27, 2012 Bruce Hansen (University of Wisconsin) Foundations

More information

Passing-Bablok Regression for Method Comparison

Passing-Bablok Regression for Method Comparison Chapter 313 Passing-Bablok Regression for Method Comparison Introduction Passing-Bablok regression for method comparison is a robust, nonparametric method for fitting a straight line to two-dimensional

More information

Topic 10: Panel Data Analysis

Topic 10: Panel Data Analysis Topic 10: Panel Data Analysis Advanced Econometrics (I) Dong Chen School of Economics, Peking University 1 Introduction Panel data combine the features of cross section data time series. Usually a panel

More information

Elementary Operations and Matrices

Elementary Operations and Matrices LECTURE 4 Elementary Operations and Matrices In the last lecture we developed a procedure for simplying the set of generators for a given subspace of the form S = span F (v 1,..., v k ) := {α 1 v 1 + +

More information

Econometrics. Week 8. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Econometrics. Week 8. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague Econometrics Week 8 Institute of Economic Studies Faculty of Social Sciences Charles University in Prague Fall 2012 1 / 25 Recommended Reading For the today Instrumental Variables Estimation and Two Stage

More information

ECON0702: Mathematical Methods in Economics

ECON0702: Mathematical Methods in Economics ECON0702: Mathematical Methods in Economics Yulei Luo SEF of HKU January 12, 2009 Luo, Y. (SEF of HKU) MME January 12, 2009 1 / 35 Course Outline Economics: The study of the choices people (consumers,

More information

Implementing Conditional Tests with Correct Size in the Simultaneous Equations Model

Implementing Conditional Tests with Correct Size in the Simultaneous Equations Model The Stata Journal (2001) 1, Number 1, pp. 1 15 Implementing Conditional Tests with Correct Size in the Simultaneous Equations Model Marcelo J. Moreira Department of Economics Harvard University Brian P.

More information

Econometrics. Week 4. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague

Econometrics. Week 4. Fall Institute of Economic Studies Faculty of Social Sciences Charles University in Prague Econometrics Week 4 Institute of Economic Studies Faculty of Social Sciences Charles University in Prague Fall 2012 1 / 23 Recommended Reading For the today Serial correlation and heteroskedasticity in

More information

Least Squares Estimation-Finite-Sample Properties

Least Squares Estimation-Finite-Sample Properties Least Squares Estimation-Finite-Sample Properties Ping Yu School of Economics and Finance The University of Hong Kong Ping Yu (HKU) Finite-Sample 1 / 29 Terminology and Assumptions 1 Terminology and Assumptions

More information

Taylor and Maclaurin Series. Copyright Cengage Learning. All rights reserved.

Taylor and Maclaurin Series. Copyright Cengage Learning. All rights reserved. 11.10 Taylor and Maclaurin Series Copyright Cengage Learning. All rights reserved. We start by supposing that f is any function that can be represented by a power series f(x)= c 0 +c 1 (x a)+c 2 (x a)

More information

Inference with Simple Regression

Inference with Simple Regression 1 Introduction Inference with Simple Regression Alan B. Gelder 06E:071, The University of Iowa 1 Moving to infinite means: In this course we have seen one-mean problems, twomean problems, and problems

More information

Box-Jenkins ARIMA Advanced Time Series

Box-Jenkins ARIMA Advanced Time Series Box-Jenkins ARIMA Advanced Time Series www.realoptionsvaluation.com ROV Technical Papers Series: Volume 25 Theory In This Issue 1. Learn about Risk Simulator s ARIMA and Auto ARIMA modules. 2. Find out

More information

Multiple Linear Regression

Multiple Linear Regression Multiple Linear Regression Asymptotics Asymptotics Multiple Linear Regression: Assumptions Assumption MLR. (Linearity in parameters) Assumption MLR. (Random Sampling from the population) We have a random

More information

Final exam.

Final exam. EE364a Convex Optimization I March 14 15 or March 15 16, 2008. Prof. S. Boyd Final exam You may use any books, notes, or computer programs (e.g., Matlab, cvx), but you may not discuss the exam with anyone

More information

Linear Regression and Non-Linear Regression

Linear Regression and Non-Linear Regression Linear Regression and Non-Linear Regression Andrew Long October 7, 2016 Abstract There are two fundamental ideas at work here. The first is finding a best-fit to an over-determined problem (over-determined

More information

Intermediate Econometrics

Intermediate Econometrics Intermediate Econometrics Heteroskedasticity Text: Wooldridge, 8 July 17, 2011 Heteroskedasticity Assumption of homoskedasticity, Var(u i x i1,..., x ik ) = E(u 2 i x i1,..., x ik ) = σ 2. That is, the

More information

EC327: Advanced Econometrics, Spring 2007

EC327: Advanced Econometrics, Spring 2007 EC327: Advanced Econometrics, Spring 2007 Wooldridge, Introductory Econometrics (3rd ed, 2006) Chapter 14: Advanced panel data methods Fixed effects estimators We discussed the first difference (FD) model

More information

Item Reliability Analysis

Item Reliability Analysis Item Reliability Analysis Revised: 10/11/2017 Summary... 1 Data Input... 4 Analysis Options... 5 Tables and Graphs... 5 Analysis Summary... 6 Matrix Plot... 8 Alpha Plot... 10 Correlation Matrix... 11

More information

Homework Set 2, ECO 311, Fall 2014

Homework Set 2, ECO 311, Fall 2014 Homework Set 2, ECO 311, Fall 2014 Due Date: At the beginning of class on October 21, 2014 Instruction: There are twelve questions. Each question is worth 2 points. You need to submit the answers of only

More information

A Robust Test for Weak Instruments in Stata

A Robust Test for Weak Instruments in Stata A Robust Test for Weak Instruments in Stata José Luis Montiel Olea, Carolin Pflueger, and Su Wang 1 First draft: July 2013 This draft: November 2013 Abstract We introduce and describe a Stata routine ivrobust

More information

Central Bank of Chile October 29-31, 2013 Bruce Hansen (University of Wisconsin) Structural Breaks October 29-31, / 91. Bruce E.

Central Bank of Chile October 29-31, 2013 Bruce Hansen (University of Wisconsin) Structural Breaks October 29-31, / 91. Bruce E. Forecasting Lecture 3 Structural Breaks Central Bank of Chile October 29-31, 2013 Bruce Hansen (University of Wisconsin) Structural Breaks October 29-31, 2013 1 / 91 Bruce E. Hansen Organization Detection

More information

Introduction to lnmle: An R Package for Marginally Specified Logistic-Normal Models for Longitudinal Binary Data

Introduction to lnmle: An R Package for Marginally Specified Logistic-Normal Models for Longitudinal Binary Data Introduction to lnmle: An R Package for Marginally Specified Logistic-Normal Models for Longitudinal Binary Data Bryan A. Comstock and Patrick J. Heagerty Department of Biostatistics University of Washington

More information

CHAPTER 21: TIME SERIES ECONOMETRICS: SOME BASIC CONCEPTS

CHAPTER 21: TIME SERIES ECONOMETRICS: SOME BASIC CONCEPTS CHAPTER 21: TIME SERIES ECONOMETRICS: SOME BASIC CONCEPTS 21.1 A stochastic process is said to be weakly stationary if its mean and variance are constant over time and if the value of the covariance between

More information

Reliability of inference (1 of 2 lectures)

Reliability of inference (1 of 2 lectures) Reliability of inference (1 of 2 lectures) Ragnar Nymoen University of Oslo 5 March 2013 1 / 19 This lecture (#13 and 14): I The optimality of the OLS estimators and tests depend on the assumptions of

More information

Introduction - Motivation. Many phenomena (physical, chemical, biological, etc.) are model by differential equations. f f(x + h) f(x) (x) = lim

Introduction - Motivation. Many phenomena (physical, chemical, biological, etc.) are model by differential equations. f f(x + h) f(x) (x) = lim Introduction - Motivation Many phenomena (physical, chemical, biological, etc.) are model by differential equations. Recall the definition of the derivative of f(x) f f(x + h) f(x) (x) = lim. h 0 h Its

More information

Tests for the Odds Ratio in Logistic Regression with One Binary X (Wald Test)

Tests for the Odds Ratio in Logistic Regression with One Binary X (Wald Test) Chapter 861 Tests for the Odds Ratio in Logistic Regression with One Binary X (Wald Test) Introduction Logistic regression expresses the relationship between a binary response variable and one or more

More information

Multivariate Time Series: Part 4

Multivariate Time Series: Part 4 Multivariate Time Series: Part 4 Cointegration Gerald P. Dwyer Clemson University March 2016 Outline 1 Multivariate Time Series: Part 4 Cointegration Engle-Granger Test for Cointegration Johansen Test

More information

Econometrics II - EXAM Answer each question in separate sheets in three hours

Econometrics II - EXAM Answer each question in separate sheets in three hours Econometrics II - EXAM Answer each question in separate sheets in three hours. Let u and u be jointly Gaussian and independent of z in all the equations. a Investigate the identification of the following

More information

Two Correlated Proportions Non- Inferiority, Superiority, and Equivalence Tests

Two Correlated Proportions Non- Inferiority, Superiority, and Equivalence Tests Chapter 59 Two Correlated Proportions on- Inferiority, Superiority, and Equivalence Tests Introduction This chapter documents three closely related procedures: non-inferiority tests, superiority (by a

More information

Interaction effects for continuous predictors in regression modeling

Interaction effects for continuous predictors in regression modeling Interaction effects for continuous predictors in regression modeling Testing for interactions The linear regression model is undoubtedly the most commonly-used statistical model, and has the advantage

More information

The ARIMA Procedure: The ARIMA Procedure

The ARIMA Procedure: The ARIMA Procedure Page 1 of 120 Overview: ARIMA Procedure Getting Started: ARIMA Procedure The Three Stages of ARIMA Modeling Identification Stage Estimation and Diagnostic Checking Stage Forecasting Stage Using ARIMA Procedure

More information

EE263 Midterm Exam. This is a 24 hour take-home midterm. Please turn it in at Bytes Cafe in the Packard building, 24 hours after you pick it up.

EE263 Midterm Exam. This is a 24 hour take-home midterm. Please turn it in at Bytes Cafe in the Packard building, 24 hours after you pick it up. EE263 Midterm Exam This is a 24 hour take-home midterm. Please turn it in at Bytes Cafe in the Packard building, 24 hours after you pick it up. You may use any books, notes, or computer programs (e.g.,

More information

Supplemental Materials. In the main text, we recommend graphing physiological values for individual dyad

Supplemental Materials. In the main text, we recommend graphing physiological values for individual dyad 1 Supplemental Materials Graphing Values for Individual Dyad Members over Time In the main text, we recommend graphing physiological values for individual dyad members over time to aid in the decision

More information

Implementing Rubin s Alternative Multiple Imputation Method for Statistical Matching in Stata

Implementing Rubin s Alternative Multiple Imputation Method for Statistical Matching in Stata Implementing Rubin s Alternative Multiple Imputation Method for Statistical Matching in Stata Anil Alpman To cite this version: Anil Alpman. Implementing Rubin s Alternative Multiple Imputation Method

More information