Perhaps the most important assumption of any time series model is that the underlying process is the same across all observations in the sample. It is, therefore, necessary to analyze carefully time series data that include periods of violent change. A tool that is particularly useful in this regard is the Chow test.
The Chow test is commonly used to test for structural change in some or all of the parameters of a model in cases where the disturbance term is assumed to be the same in both periods.
The Chow test is an application of the F-test, and it requires the sum of squared errors from three regressions - one for each sample period and one for the pooled data.
In an investigation of the demand for food in the United States, researchers may want to determine whether the structure of the demand equation changes after World War II.
data food; input year q p y @@; retain one 1; lnq = log(q); lnp = log(p); lny = log(y); datalines; 27 88.9 91.7 57.7 28 88.9 92.0 59.3 29 89.1 93.1 62.0 ... ; run;
Once the FOOD data set is created, the interactive data analysis feature of SAS/INSIGHT software can be used to check the data for errors and to explore graphically possible relationships among the variables.
In this case, a 3-D Rotating Plot of the variables LNQ, LNP, and LNY show a break between the observations before 15 and after 16 corresponding to the years 1927-1941 and 1948-1962. This evidence suggests that a test for a structural break in a model for the demand for food may be appropriate.
proc autoreg data=food; model lnq = lnp lny / chow=(15 16 17); run;R2 is a measure for the appropriateness of the model. The value of 0.973 implies that LNP and LNY together explain more than 90% of the variation in LNQ.
The coefficient estimates are highly significant, while the negative sign on LNP and the positive sign on LNY satisfy the intuition that price elasticity has an inverse relationship to quantity demanded and income elasticity has a direct relationship.
Notice that the Chow test is highly significant for break points 15 and 16, which correspond to the years 1941 and 1948. This is not a very surprising result given the state of the world at that time.
Chow, G.C. (1960), "Tests of Equality between Sets of Coefficients in Two Linear Regressions," Econometrica, 28, 591-605.
Fisher, F.M. (1970), "Tests of Equality between Sets of Coefficients in Two Linear Regressions: An Expository Note," Econometrica, 38, 361-366.
Greene, W.H. (1993), Econometric Analysis, Second Edition, New York: Macmillan Publishing Company.
Maddala, G.S. (1992), Introduction to Econometrics, Second Edition, New York: Macmillan Publishing Company.
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
/* Chow Test for Structural Breaks */
title1 ' CHOW Test ';
data food;
input year q p y @@;
retain one 1;
lnq = log(q);
lnp = log(p);
lny = log(y);
datalines;
27 88.9 91.7 57.7
28 88.9 92.0 59.3
29 89.1 93.1 62.0
30 88.7 90.9 56.3
31 88.0 82.3 52.7
32 85.9 76.3 44.4
33 86.0 78.3 43.8
34 87.1 84.3 47.8
35 85.4 88.1 52.1
36 88.5 88.0 58.0
37 88.4 88.4 59.8
38 88.6 83.5 55.9
39 91.7 82.4 60.3
40 93.3 83.0 64.1
41 95.1 86.2 73.7
48 96.7 105.3 82.1
49 96.7 102.0 83.1
50 98.0 102.4 88.6
51 96.1 105.4 88.3
52 98.1 105.0 89.1
53 99.1 102.6 92.1
54 99.1 101.9 91.7
55 99.8 100.8 96.5
56 101.5 100.0 99.8
57 99.9 99.8 99.9
58 99.1 101.2 98.4
59 101.0 98.8 101.8
60 100.7 98.4 101.8
61 100.8 98.8 103.1
62 101.0 98.4 105.5
;
run;
proc print data=food (obs=8);
var q p y lnq lnp lny;
run;
ods select Autoreg.Model1.Dependent
Autoreg.Model1.OLSEst.FitSummary
Autoreg.Model1.OLSEst.ChowTest
Autoreg.Model1.OLSEst.ParameterEstimates;
ods html body='chowOut.htm';
proc autoreg data=food;
model lnq = lnp lny / chow=(15 16 17);
run;
ods html close;
These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.
Type: | Sample |
Date Modified: | 2017-01-24 12:40:58 |
Date Created: | 2017-01-24 12:37:01 |
Product Family | Product | Host | SAS Release | |
Starting | Ending | |||
SAS System | SAS/EIS | OpenVMS VAX | ||
Microsoft® Windows® for 64-Bit Itanium-based Systems | ||||
Microsoft Windows Server 2003 Datacenter 64-bit Edition | ||||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | ||||
Microsoft Windows XP 64-bit Edition | ||||
Microsoft® Windows® for x64 | ||||
OS/2 | ||||
Microsoft Windows 8 Enterprise 32-bit | ||||
Microsoft Windows 8 Enterprise x64 | ||||
Microsoft Windows 8 Pro 32-bit | ||||
Microsoft Windows 8 Pro x64 | ||||
Microsoft Windows 8.1 Enterprise 32-bit | ||||
Microsoft Windows 8.1 Enterprise x64 | ||||
Microsoft Windows 8.1 Pro 32-bit | ||||
Microsoft Windows 8.1 Pro x64 | ||||
Microsoft Windows 10 | ||||
Microsoft Windows 95/98 | ||||
Microsoft Windows 2000 Advanced Server | ||||
Microsoft Windows 2000 Datacenter Server | ||||
Microsoft Windows 2000 Server | ||||
Microsoft Windows 2000 Professional | ||||
Microsoft Windows NT Workstation | ||||
Microsoft Windows Server 2003 Datacenter Edition | ||||
Microsoft Windows Server 2003 Enterprise Edition | ||||
Microsoft Windows Server 2003 Standard Edition | ||||
Microsoft Windows Server 2003 for x64 | ||||
Microsoft Windows Server 2008 | ||||
Microsoft Windows Server 2008 R2 | ||||
Microsoft Windows Server 2008 for x64 | ||||
Microsoft Windows Server 2012 Datacenter | ||||
Microsoft Windows Server 2012 R2 Datacenter | ||||
Microsoft Windows Server 2012 R2 Std | ||||
Microsoft Windows Server 2012 Std | ||||
Microsoft Windows XP Professional | ||||
Windows 7 Enterprise 32 bit | ||||
Windows 7 Enterprise x64 | ||||
Windows 7 Home Premium 32 bit | ||||
Windows 7 Home Premium x64 | ||||
Windows 7 Professional 32 bit | ||||
Windows 7 Professional x64 | ||||
Windows 7 Ultimate 32 bit | ||||
Windows 7 Ultimate x64 | ||||
Windows Millennium Edition (Me) | ||||
Windows Vista | ||||
Windows Vista for x64 | ||||
64-bit Enabled AIX | ||||
64-bit Enabled HP-UX | ||||
64-bit Enabled Solaris | ||||
ABI+ for Intel Architecture | ||||
AIX | ||||
HP-UX | ||||
HP-UX IPF | ||||
IRIX | ||||
Linux | ||||
Linux for x64 | ||||
Linux on Itanium | ||||
OpenVMS Alpha | ||||
OpenVMS on HP Integrity | ||||
Solaris | ||||
Solaris for x64 | ||||
Tru64 UNIX |