CDF. Function: Usage:

Similar documents
OLSQ. Function: Usage:

Case of single exogenous (iv) variable (with single or multiple mediators) iv à med à dv. = β 0. iv i. med i + α 1

BJEST. Function: Usage:

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

Multivariate Time Series: Part 4

Distributed-lag linear structural equation models in R: the dlsem package

Darmstadt Discussion Papers in Economics

Finite-sample quantiles of the Jarque-Bera test

Advanced Econometrics

Introduction to Eco n o m et rics

LSQ. Function: Usage:

(Y jz) t (XjZ) 0 t = S yx S yz S 1. S yx:z = T 1. etc. 2. Next solve the eigenvalue problem. js xx:z S xy:z S 1

A TIME SERIES PARADOX: UNIT ROOT TESTS PERFORM POORLY WHEN DATA ARE COINTEGRATED

Using EViews Vox Principles of Econometrics, Third Edition

ARDL Cointegration Tests for Beginner

TESTING FOR CO-INTEGRATION

388 Index Differencing test ,232 Distributed lags , 147 arithmetic lag.

Finite-sample critical values of the AugmentedDickey-Fuller statistic: The role of lag order

Cointegration and Tests of Purchasing Parity Anthony Mac Guinness- Senior Sophister

Moreover, the second term is derived from: 1 T ) 2 1

Testing for non-stationarity

Questions and Answers on Unit Roots, Cointegration, VARs and VECMs

INTRODUCTORY REGRESSION ANALYSIS

Economics 308: Econometrics Professor Moody

LM threshold unit root tests

Economtrics of money and finance Lecture six: spurious regression and cointegration

On the robustness of cointegration tests when series are fractionally integrated

Unit roots in vector time series. Scalar autoregression True model: y t 1 y t1 2 y t2 p y tp t Estimated model: y t c y t1 1 y t1 2 y t2

E 4160 Autumn term Lecture 9: Deterministic trends vs integrated series; Spurious regression; Dickey-Fuller distribution and test

Christopher Dougherty London School of Economics and Political Science

Numerical Distribution Functions of. Likelihood Ratio Tests for Cointegration. James G. MacKinnon. Alfred A. Haug. Leo Michelis

Logistic Regression Analysis

1 Quantitative Techniques in Practice

Lecture 8a: Spurious Regression

GLS detrending and unit root testing

Response surface models for the Elliott, Rothenberg, Stock DF-GLS unit-root test

Time Series Analysis. James D. Hamilton PRINCETON UNIVERSITY PRESS PRINCETON, NEW JERSEY

This is a repository copy of The Error Correction Model as a Test for Cointegration.

Lecture 8a: Spurious Regression

Unit Root and Cointegration

E 4101/5101 Lecture 9: Non-stationarity

Cointegration, Stationarity and Error Correction Models.

APPLIED MACROECONOMETRICS Licenciatura Universidade Nova de Lisboa Faculdade de Economia. FINAL EXAM JUNE 3, 2004 Starts at 14:00 Ends at 16:30

Y t = ΦD t + Π 1 Y t Π p Y t p + ε t, D t = deterministic terms

Nonsense Regressions due to Neglected Time-varying Means

An Econometric Modeling for India s Imports and exports during

Econ 423 Lecture Notes: Additional Topics in Time Series 1

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

Approximating Bayesian Posterior Means Using Multivariate Gaussian Quadrature

Bootstrapping the Grainger Causality Test With Integrated Data

ECON 4160, Lecture 11 and 12

Stationary and nonstationary variables

COINTEGRATION TESTS OF PPP: DO THEY ALSO EXHIBIT ERRATIC BEHAVIOUR? Guglielmo Maria Caporale Brunel University, London

9) Time series econometrics

An Application of Cointegration Analysis on Strategic Asset Allocation

A Monte Carlo Sampling Approach to Testing Separate Families of Hypotheses: Monte Carlo Results

LESLIE GODFREY LIST OF PUBLICATIONS

Econometrics I. Professor William Greene Stern School of Business Department of Economics 25-1/25. Part 25: Time Series

Time Series Analysis. James D. Hamilton PRINCETON UNIVERSITY PRESS PRINCETON, NEW JERSEY

MA Advanced Econometrics: Spurious Regressions and Cointegration

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

Modelling of Economic Time Series and the Method of Cointegration

Bristol Business School

Cointegration and Error Correction Exercise Class, Econometrics II

Applied Econometrics. Applied Econometrics. Applied Econometrics. Applied Econometrics. What is Autocorrelation. Applied Econometrics

Accounting for Missing Values in Score- Driven Time-Varying Parameter Models

Response surface models for the Elliott, Rothenberg, Stock DF-GLS unit-root test

THE SEASONAL UNIT ROOTS IN DEMOGRAPHIC TIME SERIES ANDTHE POSSIBILITIES OF ITS EXACT TESTING

Financial Time Series Analysis: Part II

Testing for a unit root in an ar(1) model using three and four moment approximations: symmetric distributions

Brief Sketch of Solutions: Tutorial 3. 3) unit root tests

QED. Queen s Economics Department Working Paper No. 1273

Population Growth and Economic Development: Test for Causality

Economics 471: Econometrics Department of Economics, Finance and Legal Studies University of Alabama

This chapter reviews properties of regression estimators and test statistics based on

Applied Econometrics. Professor Bernard Fingleton

VAR Models and Cointegration 1

Non-Stationary Time Series, Cointegration, and Spurious Regression

df=degrees of freedom = n - 1

11/18/2008. So run regression in first differences to examine association. 18 November November November 2008

The Drachma/Deutschemark Exchange Rate, : A Monetary Analysis

Bayesian Econometrics - Computer section

Research Center for Science Technology and Society of Fuzhou University, International Studies and Trade, Changle Fuzhou , China

Contents. Part I Statistical Background and Basic Data Handling 5. List of Figures List of Tables xix

10) Time series econometrics

Multivariate time series modeling using VARMAX

Univariate linear models

Multivariate Time Series Analysis and Its Applications [Tsay (2005), chapter 8]

Department of Agricultural Economics & Agribusiness

NBER WORKING PAPER SERIES IS THE SPURIOUS REGRESSION PROBLEM SPURIOUS? Bennett T. McCallum. Working Paper

Probability Distributions for the Insight Toolkit

Fractional integration and cointegration: The representation theory suggested by S. Johansen

On Consistency of Tests for Stationarity in Autoregressive and Moving Average Models of Different Orders

Stationarity and Cointegration analysis. Tinashe Bvirindi

Chapter 15 The PDLREG Procedure. Chapter Table of Contents

Automatic seasonal auto regressive moving average models and unit root test detection

NUMERICAL DISTRIBUTION FUNCTIONS OF LIKELIHOOD RATIO TESTS FOR COINTEGRATION

Some general observations.

APPLIED TIME SERIES ECONOMETRICS

Finite Sample Performance of A Minimum Distance Estimator Under Weak Instruments

Transcription:

CDF CDF (BIVNORM or CHISQ or DICKEYF or F or NORMAL or T or WTDCHI, DF=degrees of freedom for CHISQ or T, DF1=numerator degrees of freedom for F, DF2=denominator degrees of freedom for F, NLAGS=number of lags for augmented Dickey-Fuller test, NOB=number of observations for unit root or cointegration test, NVAR=number of variables for cointegration test, RHO=correlation coefficient for BIVNORM, EIGVAL=vector of eigenvalues for WTDCHI, LOWTAIL or UPTAIL or TWOTAIL, CONSTANT, TREND, TSQ, INVERSE, PRINT) test statistic [significance level]; or significance level [critical value]; (for INVERSE) or x value y value [significance level]; (for BIVNORM) Function: CDF calculates and prints tail probabilities (p-value or significance level) or critical values for several cumulative distribution functions. This is useful for hypothesis testing. Usage: CDF followed by the value of a scalar test statistic is the simplest form of the command. In this case, a two-tailed probability for the normal distribution will be calculated and printed. If the INVERSE option is used, the first argument must be a probability level; a critical value will be calculated. Arguments need not be scalars; they can be series or matrices. Other distributions or tail areas may be selected through the options. For hypothesis testing with regression diagnostics, see the REGOPT(PVPRINT) command. Options: BIVNORM/CHISQ/DICKEYF/F/NORMAL/T/WTDCHI specifies the bivariate normal, chi-squared, Dickey-Fuller, F, standard normal, student s t, and weighted chi-squared distributions, respectively. DF= the degrees of freedom for the chi-squared or student s t distribution, or the number of observations for Dickey- Fuller (the NOB= option is a better way of specifying this). DF1= the numerator degrees of freedom for the F distribution. DF2= the denominator degrees of freedom for the F distribution. RHO= the correlation coefficient for the bivariate normal distribution. EIGVAL= vector of eigenvalues for the weighted chi-squared distribution. NLAGS= the number of lagged differences in the augmented Dickey-Fuller test. This number is used to compute the approximate finite sample P-value or critical value. The default is zero (assume an unaugmented test). The NOB= 1

option must also be specified for the finite sample value. NOB= the number of observations for the augmented Dickey-Fuller or Engle-Granger tests. This number is used to compute the approximate finite sample P-value or critical value. The default is zero (to compute asymptotic instead of finite sample value). NVAR= the number of variables for an Engle-Granger/Dickey-Fuller cointegration test. The default is 1 (plain unit root test), and the maximum is 6. CONSTANT/NOCONST specifies whether a constant term (C) was included in the regression for Dickey-Fuller. NOCONST is only valid for NVAR=1. TREND/NOTREND specifies whether a trend term (1,2,...,T) was included in the regression for Dickey-Fuller. TSQ/NOTSQ specifies whether a squared trend term (1,4,9,...) was included in the regression for Dickey-Fuller. LOWTAIL/TWOTAIL/UPTAIL specifies the area of integration for the density function. TWOTAIL is the default for most symmetric distributions (normal and t), UPTAIL is the default for chi-squared and F, and LOWTAIL is the default for bivariate normal and Dickey-Fuller. TWOTAIL is not defined for bivariate normal. INVERSE/NOINVERSE specifies the inverse distribution function (input is significance level, output is critical value). Normally the input is a test statistic and the output is a significance level. INVERSE is not defined for bivariate normal. PRINT/NOPRINT turns on printing of results. PRINT is true by default if there is no output specified. Output: If the PRINT option is on, the input and output values will be printed, along with the degrees of freedom. If a second argument is supplied, it will be filled with the output values and stored (see examples 4 and 6). Input and output arguments may be any numeric TSP variables. Examples: 1. To compute the significance level of a Hausman test statistic with 5 degrees of freedom: CDF(CHISQ,DF=5) HAUS; produces the output-- CHISQ(5) Test Statistic: 7.235999, Upper tail area:.20367 2. Significance level of the test for AR(1) with lagged dependent variable(s): CDF @DHALT; or REGOPT(PVPRINT) DHALT; before the regression 3. Two-tailed critical value for the normal distribution: CDF(INV).05; produces the output-- NORMAL Critical value: 1.959964, Two-tailed area:.05000 4. Several critical values for the normal distribution: READ PX;.1.05.01 ; 2

CDF(INV,NORM) PX CRIT; PRINT PX,CRIT; 5. F critical values: CDF(INV,F,DF1=3,DF2=10).05; produces the output-- F(3,10) Critical value: 3.708265, Upper tail area:.05000 6. Bivariate normal: CDF(BIVNORM,RHO=.5,PRINT) -1-2 PBIV; produces the output-- BIVNORM Test Statistic: -1.0000, -2.0000, Lower tail area:.01327 7. Dickey-Fuller unit root test (same as UNIT(MAXLAG=0,NOWS) Y;) : DY = Y-Y(-1); OLSQ DY TIME C Y(-1); CDF(DICKEYF) @T(3); 8. Augmented Dickey-Fuller unit root test, with finite sample P-value (same as UNIT(MAXLAG=3,NOWS,FINITE) Y;) : DY = Y-Y(-1); SMPL 5,50; OLSQ DY TIME C Y(-1) DY(-1)-DY(-3); CDF(DICKEYF,NOB=@NOB,NLAGS=3) @T(3); 9. Engle-Granger cointegration test (same as COINT(NOUNIT,MAXLAG=0,ALLORD) Y1-Y4; ): OLSQ Y1 TIME C Y2 Y3 Y4; EGTEST; OLSQ Y2 TIME C Y1 Y3 Y4; EGTEST; OLSQ Y3 TIME C Y1 Y2 Y4; EGTEST; OLSQ Y4 TIME C Y1 Y2 Y3; EGTEST; PROC EGTEST; DU = @RES-@RES(-1); OLSQ DU @RES(-1); CDF(DICKEYF,NVAR=4) @T; SMPL 1,50; ENDPROC; 3

10. Verify critical values for Durbin-Watson statistic, for regression with 10 observations and 2 RHS variables: SMPL 1,10; OLSQ Y C X1; SET PI = 4*ATAN(1); SET F = PI/(2*@NOB); TREND I; EIGB = 4*SIN(I*F)**2; SELECT I <= (@NOB-@NCOEF);? use largestlest eigenvalues for dl CDF(WTDCHI,EIG=EIGB).879;? dl for 5% (n=10, k =1) SELECT (@NCOEF <= I) & (I <= (@NOB-1));? use smallest eigenvalues for du MMAKE du 1.320 1.165 1.001;? du for 5%, 2.5%, 1% (n=10, k =1) CDF(WTDCHI,EIG=EIGB,PRINT) du; 11. Reproduce exact P-value for Durbin-Watson statistic (can already be done by REGOPT): SMPL 1,10;? data from Judge, et al (1988) example: DW = 1.037, P-value =.0286 READ Y X1; 4 2 7 4 7.5 6 4 3 2 1 3 2 5 3 4.5 4 7.5 8 5 6 ; REGOPT(DWPVAL=EXACT); OLSQ Y C X1; MMAKE X @RNMS; MAT XPXI = (X X)"; TREND OBS; SELECT OBS > 1; DC = 0; DX1 = X1 - X1(-1); MMAKE DX DC DX1; MMAKE BVEC 2-1; MFORM(BAND,NROW=@NOB) DDP = BVEC; MAT DMDP = DDP - DX*XPXI*DX ;? Eigenvalues of DMD = D*D - DX*(X X)"(DX)? (same as nonzero eigenvalues of MA, because A = D D) MAT ED = EIGVAL(DMDP); CDF(WTDCHI,EIG=ED) @DW; Method: BIVNORM: ACM Algorithm 462. Inverse is not supplied because it is not unique unless x or y is known, etc. CHISQ: DCDFLIB method: Abramovitz-Stegun formula 26.4.19 converts it to Incomplete Gamma, and then use DiDinato and Morris(1986). Inverse by iteration (trying values of x to yield p -- faster methods are also known). F and T: DCDFLIB method: Abramovitz-Stegun formula 26.6.2 converts it to Incomplete Beta, and then use DiDinato and Morris (1993), i.e. ACM Algorithm 708. Inverse by iteration. NORMAL: ACM Algorithm 304, with quadratic approximation for E<-37.5. Inverse: Applied Statistics Algorithm AS241, from StatLib. DICKEYF: Asymptotic values from Tables 3 and 4 in MacKinnon (1994). Finite sample critical values from Cheung and Lai (1995) [augmented Dickey-Fuller] or MacKinnon (1991) [Engle-Granger]. To convert these to finite sample P-values, a logistic interpolation is used with the.05 size and either the.01 or.10 size (whichever is closer to the observed test statistic). Such interpolated P-values are fine for testing at the.01,.05, or.10 sizes, but would be highly speculative outside this range. WTDCHI: If w i are the eigenvalues, c i are chi-squared(1) variables, and d is the test statistic, WTDCHI computes the following probability: Pr[sum(w i *c i )/sum(c i ) < d] = Pr[sum((w i -d)*c i ) < 0]. This is useful for computing P-values for the Durbin-Watson statistic, other ratios of quadratic forms in normal variables, and certain non-nested tests (for example, Vuong(1989)). The Pan method is used when the number of eigenvalues is less than 90; otherwise the Imhoff method is used. If the absolute values of the smallest eigenvalues are less than 1D-12, they are not used; otherwise duplicate eigenvalues are not checked for. The inverse of this distribution is not implemented. 4

References: Algorithm AS 241, Applied Statistics 37 (1988), Royal Statistical Society. Cheung, Yin-Wong, and Lai, Kon S., "Lag Order and Critical Values of the Augmented Dickey-Fuller Test", Journal of Business and Economic Statistics, July 1995, pp.277-280. Collected Algorithms from ACM, New York, 1980. DCDFLIB. http://odin.mdacc.tmc.edu, by Barry W. Brown, downloaded v1.1, 4/1998. DiDinato, A.R. and Morris, Alfred H. Jr., "Computation of the Incomplete Gamma Function Ratios and Their Inverse", ACM Transactions on Mathematical Software 12, 1986, pp.377-393. DiDinato, A.R. and Morris, Alfred H. Jr., "Algorithm 708: Significant Digit Computation of the Incomplete Beta Function Ratios", ACM Transactions on Mathematical Software 18, 1993, pp.360-373. Engle, R.F., and Granger, C.W.J., "Co-integration and Error Correction: Representation, Estimation, and Testing," Econometrica 55 (1987), pp.251-276. Imhoff, P.J., "Computing the Distribution of Quadratic Forms in Normal Variables," Biometrika 48, 1961, pp.419-426. Judge, George G., Hill, R. Carter, Griffiths, William E., Lutkepohl, Helmut, and Lee, Tsoung-Chao, Introduction to the Theory and Practice of Econometrics, second edition, Wiley, New York, 1988, pp.394-400. MacKinnon, James G., "Critical Values for Cointegration Tests," in Long-Run Economic Relationships: Readings in Cointegration, eds. R.F.Engle and C.W.J.Granger, New York: Oxford University Press, 1991, pp.266-276. MacKinnon, James G., "Approximate Asymptotic Distribution Functions for Unit-Root and Cointegration Tests," Journal of Business and Economic Statistics, April 1994, pp.167-176. Pan Jie-Jian, "Distribution of Noncircular Correlation Coefficients," Selected Transactions in Mathematical Statistics and Probability, 1968, pp.281-291. StatLib. http://lib.stat.cmu.edu/apstat/ Vuong, Quang H., "Likelihood Ratio Tests for Model Selection and Non-Nested Hypotheses," Econometrica 57, 1989, pp. 307-334. 5