




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Recall that although OLS is considered a linear estimator, it does not mean that the relationship between Y and X need be linear. In this chapter, we introduce several types of nonlinear models and methods of testing for nonlinearity associated with structural changes.
Consider the regression model yi = α + x^0 iβ + δdi + i
for i = 1, ..., n where di is a dummy or binary variable equal to one if the condition is satisfied and zero otherwise. The dummy variable can be used to contrast two means
E[yi|x^0 i, di = 0] = α + x^0 iβ E[yi|x^0 i, di = 1] = α + x^0 iβ + δ.
A simple t test can then be used to test whether the conditional mean of y is different when d = 0 as opposed to d = 1. The null hypothesis for this test would be H 0 : δ = 0. An example will be presented below.
Some qualitative variables are naturally grouped into discrete categories (e.g., seasons of the year, religious affiliation, race, etc.). It also often useful to artificially categorize quantitative variables (e.g., income levels, education, age, etc.). Consider the regression model
yi = α + x^0 iβ + δ 1 D 1 i + δ 2 D 2 i + δ 3 D 3 i + i
with a set of four binary variables (D 1 i, D 2 i, D 3 i and D 4 i). Notice that one of the variables (D 4 i) is excluded from the model to avoid the dummy-variable trap. Inclusion of D 4 i would violate the Classical assumption that the X matrix is of full rank. This occurs because the four dummy variables will sum to a column of ones, which is perfectly collinear with the constant. By excluding D 4 i, the δ coefficients are interpreted as the change in y when moving from the jth^ category (Dji = 1) as compared to 4 th^ category (D 4 i = 1).
2.2.1 Example. Testing for seasonality.
Consider two different models that test for seasonality in Y :
yi = α + x^0 iβ + δ 1 D 1 i + δ 2 D 2 i + δ 3 D 3 i + i (1) yi = x^0 iβ + θ 1 D 1 i + θ 2 D 2 i + θ 3 D 3 i + θ 4 D 4 i + i. (2)
Each equation avoids the dummy-variable trap — the first by excluding D 4 i and the second by excluding the constant term α. Both equations generate the same goodness of fit, but the coefficients are interpreted differently. For equation (1) the test for seasonality is
H 0 : δ 1 = δ 2 = δ 3 = 0
and for equation (2) the test is H 0 : θ 1 = θ 2 = θ 3 = θ 4.
Both of these tests can be performed using the general F test developed in chapter 6 (provided the errors are normally distributed). It is instructive to relate the coefficients to one another
Category Relationship between coefficients D 1 = 1 θ 1 = α + δ 1 ⇒ δ 1 = θ 1 − θ 4 D 2 = 1 θ 2 = α + δ 2 ⇒ δ 2 = θ 2 − θ 4 D 3 = 1 θ 3 = α + δ 3 ⇒ δ 3 = θ 3 − θ 4 D 4 = 1 θ 4 = α
This highlights the fact that the δ coefficients are measured as the effect on Y , relative to the excluded category.
with the additional restriction that the line is continuous at xi = x^0 (i.e., α + β 1 x^0 = α + β 1 x^0 + β 2 x^0 + β 3 ). Substituting the restriction β 3 = −β 2 x^0 back into equation (4) and rearranging gives
yi = α + β 1 xi + β 2 Di(xi − x^0 ) + i.
The slope of the regression line when xi < x^0 equals β 1. The slope of the regression line when xi > x^0 equals β 1 + β 2.
Consider the following (log) earnings equation
ln(wagei) = β 1 + β 2 Agei + β 3 Age^2 i + β 4 Gradei + β 5 Marriedi + β 6 (M arriedi ∗ Gradei) + i
and a sample of 1000 men taken from the 1988 Current Population Survey. The first program shows how to estimate (and graph) a regression model with both an intercept and a slope dummy variable (see Gauss example 7.1). The second program estimates (and graphs) a spline regression with knots at Gradei = 12 and Gradei = 16. The second program also tests to see if the slopes are equal across the different education levels (see Gauss example 7.2).
Below are some common nonlinear functional forms for regression models. Note that although some re- gression models may appear to violate Classical assumption #1 (i.e., the model is linear in the coefficients and error term), it is sometimes possible to take a linearizing transformation of the model (e.g., see the double-log form below).
Consider the following regression model
yi = β 1 Q^ k j=2^ x
β j,ij exp(i)
which initially appears to be nonlinear in the parameters and the error term. However, by taking natural logs of both sides, we get
ln(yi) = β 1 + β 2 ln(x 2 ,i) + β 3 ln(x 3 ,i) + ... + βk ln(xk,i) + i,
which is now obviously linear in β and . This is called the double-log functional form. The β coefficients can be interpreted as elasticities ∂ ln(yi) ∂ ln(xki) =^ βk
or the percentage change in yi for a one percent change in xki, all else equal.
The semi-log functional form refers to either the dependent or some of the independent variables being logged. One example is ln(yi) = β 1 + β 2 x 2 ,i + β 3 x 3 ,i + ... + βkxk,i + i.
3.2.1 Notes.
An example of a polynomial functional form is
yi = β 1 + β 2 x 2 ,i + β 3 x^22 ,i + β 4 (x 2 ,ix 3 ,i) + i.
The coefficients do not measure the relevant partial derivatives. For example ∂yi ∂x 2 i^ =^ β^2 + 2β^3 x^2 ,i^ +^ β^4 x^3 ,i
where β 1 and β 2 are (k × 1 ) vectors. We can estimate this model using least squares
b =
Next, we test for structural change using our standard F test, where the hypotheses are
H 0 : Rβ = q or β 1 = β 2 HA : Rβ 6 = q or β 1 6 = β 2
and R = (Ik | − Ik) and q = 0. The standard F statistic is
F = (Rb^ −^ q)
(^0) [R(X (^0) X)− (^1) R (^0) ]− (^1) (Rb − q)/k s^2 ∼^ F^ (k, n^ −^2 k).
4.1.1 Notes.
The Chow test above requires that the user knows the break point with certainty. Often structural change is more subtle and gradual, with an unknown break point. The CUSUM test below is designed for this type of situation.
Begin by defining the recursive residuals (t = 1, ..., T ) as
et = yt − x^0 tbt− 1
where bt− 1 = (X t^0 − 1 Xt− 1 )−^1 X^0 t− 1 Yt− 1 and Xt− 1 is the (t − 1 × k) matrix of regressors including data from 1 , ..., t − 1. The variance of the recursive residuals is
var(et) = E(e^0 tet) = var(t − x^0 t(bt− 1 − β)) = σ^2 + x^0 tσ^2 (X t^0 − 1 Xt− 1 )−^1 xt = σ^2 (1 + x^0 t(X^0 t− 1 Xt− 1 )−^1 xt).
Now define wt = p(1 + x 0 et t(X t^0 − 1 Xt−^1 )−^1 xt)^
which under constant parameters is distributed wt ∼ iidN (0, σ^2 ). The CUSUM test is based on the cumulative sum of wt Wt = Ptr=k+1^ w ˆσr
where σ ˆ^2 = Ptr=k+1^ (wr^ −^ w¯) 2 T − k − 1 and^ w¯^ =^
Pt r=k+ wr T − k.
The CUSUM statistic can then be graphed over time with the confidence bands connecting the points [k ± ap(T − k)] and [T ± 3 ap(T − k)]. For a 95% (99%) confidence interval, a = 0. 948 (a = 1. 143 ).
4.2.1 Notes