Econometrics Eviews 2
Econometrics Eviews 2
TUTORIAL I
The first tutorial will mainly deal with model selection carried out through
correct specification tests. It will also address the issues of coefficients’ inter-
pretation, especially those of dummy variables, of (perfect) multicollinearity
and of the correction of coefficients’ variance/covariance matrix when errors
are heteroskedastic.
We will use the bwages.wf1 workfile (the example is taken from Verbeek,
chapter 3). The workfile contains 4 variables observed in 1994 for 1, 472
Belgian individuals (therefore, data are cross sectional ): 1) wage, hourly
gross wage, in euro; 2) educ, education level: 1 if primary school; 2 if lower
vocational training; 3 if high-school; 4 if higher vocational training; 5 if
degree; 3) exper, working experience, in years; 4) male, dummy variable: 1 if
the individual is a man and 0 otherwise (there are 893 men and 579 women in
the sample). The workfile also contains three additional series: the natural
logs of wage, educ and exper.
We will estimate a wage equation with gender, education level and working
experience as regressors. We will first use a linear functional form and then
a log form. We will also use interactions of the variables to enrich the spec-
ification of the model. Notice how such a dataset allows us to try to assess
whether gender discrimination in the labour market occurs.
1 DUMMY VARIABLES
Dummy variables are variables that take the value 1 if a condition is satisfied
and 0 otherwise (e.g. 1 if the individual is a man and 0 otherwise).
Example 1 Compute first descriptive statistics for male, and then for wage,
educ and exper by gender (i.e. by classifying for the male variable).
The table with descriptive statistics for the male variable is the following:
1
Suggestion: to obtain the descriptive statistics for subsamples use the com-
mand
View...
Descriptive Statistics & Tests...
Stats by Classification
The three tables with descriptive statistics by sub-samples are the following:
2
3
Example 2 After generating the dummy variable F EM ALE which takes
the value 1 if the individual is female and 0 otherwise, estimate three models
with OLS:
wage = β0 ×i + β1 ×Male + ε (1)
wage = γ0 ×i + γ1 ×Female + ε (2)
wage = δ0 ×Male + δ1 ×Female + ε (3)
Save the three equations as eq01, eq02 and eq03. Interpret the coefficients
and the variance-covariance matrices of the coefficients.
4
Notice how the three models are a re-parametrization the one of the other.
For instance β0 = δ1 and β1 = δ0 −δ1 so that var(β0 ) = var(δ1 ) and var(β1 ) =
var(δ0 − δ1 ) = var (δ0 ) + var (δ1 )
5
2 THE LINEAR MODEL
Example 3 Estimate the model adding as additional regressors education
and working experience:
Notice: (i) β1 is the absolute difference between the wage of a man and the
one of a woman with same education and working experience levels; (ii) For
continuous variables, the coefficients are marginal effects (e.g. the marginal
effect of Exper is β3 : increasing by 1 the number of years of experience, the
wage increases by 0.19 euro, all else equal).
6
would you estimate and how would you interpret the coefficients? (save the
equation as eq05)
7
Suggestion: to perform an heteroskedasticity test digit the command:
View...
Residual Diagnostics...
Heteroskedasticity tests
The graph with the residuals plotted as function of the predicted values of
the dependent variable is:
8
Example 7 How would you modify either the model to obtain the FGLS
estimator or the variance covariance matrix of OLS estimators to be able to
perform reliable hypothesis tests?
9
10
Example 9 Interpret the coefficients, notably the one of the dummy variable
Male.
wage | X, Male = 1 wage | X, Male = 1
exp (α1 ) = exp E ln ≈E
wage | X, Male = 0 wage | X, Male = 0
(7)
wage | X, Male = 1 − wage | X, Male = 0
[exp (α1 ) − 1] ×100 ≈ E ×100
wage | X, Male = 0
(8)
H0 : α3 = 0; α4 = 0
11
To perform a joint significance test digit the command:
View...
Coefficient Diagnostics...
Wald Test - Coefficient restrictions
How you would reconcile the result of the test with the p-values of the single
hypotheses?
Example 11 Estimate the model without the (ln Exper)2 variable, save as
eq07 and consider this model as the reference one from this point onwards.
Which restriction on the impact of education on wage are we implicitly im-
posing in eq07? How could you relax this assumption? How could you test
it?
12
Which conclusion would you draw?
View...
Stability Diagnostics...
Ramsey RESET Test...
digiting “Q” in the the window that opens, i.e. the number of powers of the
fitted values to insert in the auxiliary equation (NB: Q in EViews is to be
interpreted as Q+1 of the notes and of Verbeek).
13