Stata Eview Problem Set 2 Sol

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

Advanced Econometrics STATA/EVIEW Problem Set 2

ADVANCED ECONOMETRIC COURSE


PART I: BASIC ECONOMETRIC MODELS

Suggested Answers for Problem Set 2: Instrumetal Variable Estimators


CARTELS AND PRICE FIXING

1. Estimate the own-price elasticity of demand by using OLS to regress the log of the
quantity of grain shipped on the log of the price of shipping grain and the full set of
month binary indicators.
. reg lquantity lprice $months, r;

Linear regression Number of obs = 328


F( 13, 314) = 11.42
Prob > F = 0.0000
R-squared = 0.2819
Root MSE = .40542

------------------------------------------------------------------------------
| Robust
lquantity | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lprice | -.6620433 .0754213 -8.78 0.000 -.8104383 -.5136484
seas1 | -.0955314 .0901446 -1.06 0.290 -.2728952 .0818324
seas2 | .1064381 .0844977 1.26 0.209 -.0598151 .2726913
seas3 | .1510242 .0916339 1.65 0.100 -.0292699 .3313182
seas4 | .1286241 .1236321 1.04 0.299 -.1146279 .3718761
seas5 | -.1166274 .1206273 -0.97 0.334 -.3539673 .1207125
seas6 | -.3666743 .0978573 -3.75 0.000 -.5592132 -.1741354
seas7 | -.2919127 .1338223 -2.18 0.030 -.5552145 -.0286108
seas8 | -.6490938 .095055 -6.83 0.000 -.8361191 -.4620685
seas9 | -.4108652 .0904551 -4.54 0.000 -.5888399 -.2328905
seas10 | -.2473659 .0898223 -2.75 0.006 -.4240957 -.0706362
seas11 | -.1993899 .0906922 -2.20 0.029 -.3778311 -.0209488
seas12 | -.1926615 .0870309 -2.21 0.028 -.3638989 -.021424
_cons | 9.2401 .1172646 78.80 0.000 9.009376 9.470823
------------------------------------------------------------------------------

a. What is the estimated demand elasticity and its standard error?


The estimated demand elasticity is the coefficient on lprice, which is -.662 (SE = .075)
b. Explain why the interaction of supply and demand plausibly makes this estimator of the
elasticity biased.
Price and quantity are simultaneously determined by the interaction of supply and demand, so
that there is simultaneous causality bias. If there are shifts in the demand curve then the points
resulting from the intersection of supply and demand will not trace out the demand curve, and
in general neither the demand nor supply elasticity are estimated consistently by OLS.

1
Advanced Econometrics STATA/EVIEW Problem Set 2

2. Consider two possibilities for instrumental variables: whether the railroad cartel was
experiencing one of its periodic collapses (cartel), and whether the Great Lakes are closed
because of ice (ice).
a. Use economic reasoning to argue whether cartel plausibly satisfies the two conditions for
a valid instrument.
cartel:
• Relevance: If the cartel is operating effectively then it will increase price, so
corr(lprice,cartel) should be nonzero and cartel would be relevant.
• Exogeneity: Exogeneity means that corr(cartel,u) = 0, where u is the error term in the
demand equation. The demand for shipping services depends on price, the amount of
grain to be shipped by rail, and the end user demand, but standard demand theory does
not suggest that the demand for shipping services should depend separately on whether
the cartel is operating, other than through the cartel’s effect on price; so cartel
plausibly is exogenous.

b. Use economic reasoning to argue whether ice plausibly satisfies the two conditions for a
valid instrument.
ice:
• Relevance: closing the Great Lakes will increase demand for rail services so price
should go up, so corr(lprice,ice) should be nonzero.
• Exogeneity: Exogeneity means that corr(ice,u) = 0, where u is the error term in the
demand equation. The amount of grain to be shipped by rail depends on whether an
alternative means (by boat) is available. If the Great Lakes are closed, demand
increases (the demand curve shifts up). Thus ice belongs in the demand curve as an
included exogenous regressor and, if so, it is not a valid instrumental variable.

3. Read Table 1, then compute and fill in the missing entries Note that an additional blank
column and blank row have been provided in case you have an additional specification
and/or estimator you wish to report; you are not expected to fill in entries in the blank
row when running regressions (1) – (5). (Feel free to add more rows or columns as
desired by editing the electronic file directly.)
See attached table.

2
Advanced Econometrics STATA/EVIEW Problem Set 2

4. Write a brief essay (400 words or less) in which you:


• Indicate which (if any) of the regressions in Table 1 provide the more reliable estimates of
the demand elasticity, and why;
• Draw a conclusion about whether or not there is evidence of cartel pricing;
• Summarize what you consider to be the main threats, if any, to the internal validity of this
study.

Column (1) presents an estimate of the effect of the cartel on price. Columns (2) – (6) provide
different estimates of the own-price elasticity of demand for shipping services. Most of these
estimates are plausibly biased for one reason or another. The OLS estimate (2) suffers from
simultaneous causality bias (for the reasons given in the response to question 1(b)). The TSLS
estimators from regressions (4) and (5), which use ice as an instrument, are plausibly
inconsistent because ice is a component of the error in the demand curve, that is, it belongs in
the demand curve and arguably is not exogenous (as discussed in the answer to question 2(b))
(In addition, ice is a weak instrument because its first-stage F in regression (4) is less than 10;
if ice were plausibly exogenous this would call regression (4) into question but because ice is
not exogenous the estimator (4) is inconsistent anyway.) The endogeneity of ice is confirmed
by the rejection of the J-statistic testing the over-identifying restriction that both ice and cartel
are exogenous. This leaves us with regression (3) as the only plausible estimate of the demand
elasticity; however, this specification could still have omitted variable bias because demand
depends on ice, which has been omitted. Thus regression (6) extends regression (3) by
including ice as an additional a regressor and using cartel as an instrument; with a first-stage
F of 183.0, the instrument is not weak so the results are reliable, assuming that cartel is
exogenous.

What is the evidence concerning the effectiveness of the cartel? First, regression (1) shows
that when the cartel was operating, it increased prices by a lot, 36% (which is statistically
significant). However, demand is inelastic: the estimated own-price elasticity from regression
(6) is - 0.867 > -1, and the 95% confidence interval is (-1.13, -0.60). This confidence intervals
includes both elastic and inelastic regions, and thus the results are not decisive on the elasticity
question. In any event, the second prediction, elastic demand, is not borne out decisively.
Perhaps the cartel was not completely successful, in the sense that it did not raise prices as
much as a monopolist would have; or perhaps the operators of the cartel had other
considerations that kept them from raising prices too much.

3
Advanced Econometrics STATA/EVIEW Problem Set 2

One threat to internal validity is if the instrument cartel is in fact endogenous. This cannot be
checked by empirical analysis. The instrument would be endogenous if demand depends
directly (not just through the current price) on whether the cartel is operating. Because price
wars occurred intermittently, grain shippers might expect that a period of high prices would be
temporary, and could hold inventories in silos and wait until a price war, at which point they
would ship large quantities of grain; in effect, the shippers might wait until rail shipping
services are “on sale.” If so, cartel would in effect appear in the demand curve (cartel = 1
means shippers hold back shipments in expectation of a future price collapse) and if so cartel
would not be exogenous and thus would not be a valid instrument.

A second threat to the internal validity of the conclusion that the cartel was not operating in a
region of elastic demand is that the elasticity was estimated using data that includes both
weeks when the cartel was operating and weeks when it was not. The functional form we use
here (log-log) has a constant elasticity, so we are estimating an average elasticity over these
two regimes (cartel and no cartel); even though the average elasticity was -0.867, when the
cartel was functioning demand could in fact have been more elastic. Said differently, our
conclusion might be sensitive to functional form misspecification. One way to investigate this
would be to estimate a quadratic- or cubic-in-logarithms specification in ln(P) and compute the
elasticity at different points, in particular the cartel = 1 region. That might provide a more
compelling answer to the question of whether the cartel, when it was operating, had increased
prices to the point that demand was elastic.

A third threat to internal validity, which we have not yet studied, arises from the fact that these
are time series data. Thus omitted factors in demand are plausibly correlated over time, and
this “serial correlation” in the demand error term means that the standard errors are computed
incorrectly; we will return to the proper calculation of standard errors with serially correlated
error terms when we discuss regression with time series data.

4
Advanced Econometrics STATA/EVIEW Problem Set 2

Table 1: Estimates of the own-price elasticity of the demand for rail shipments of grain, 1880 –
1886

(1) (2) (3) (4) (5) (6)


Dependent variable: ln(P) ln(Q) ln(Q) ln(Q) ln(Q) ln(Q)
Regressors:
cartel .356 – – – – –
(.026)
ln(P) – -.662 -.938 -4.75 -.921 -.867
(.075) (.136) (2.71) (.135) (.134)
ice – – – – – .423
(.135)
F-statistic testing coefficients 5.22 8.79 9.98 0.77 9.93 3.23
on monthly indicators (p- (<.001) (<.001) (<.001) (.686) (<.001) (<.001)
value)
Estimation method OLS OLS TSLS TSLS TSLS TSLS
Instrumental variables n/a n/a cartel ice ice, cartel
cartel
First stage F-statistic n/a n/a 186.4 2.39 92.9 183.0

J-test of over n/a n/a n/a n/a 11.98 n/a


identifying restrictions (<.001)

Notes: ln(P) is the logarithm of the price of transporting one ton of grain by rail and ln(Q) is
the logarithm of the quantity (weekly tonnage) of grain shipped. The entries in the rows
labeled cartel and ln(P) are the corresponding regression coefficient and, in parentheses, its
heteroskedasticity-robust standard error, estimated using the regression method in the relevant
column. All regressions contain a full set of monthly indicators, and the row labeled “F-
statistic testing coefficients on monthly indicators (p-value)” gives the F-statistic (and its p-
value in parentheses) testing the hypothesis that the coefficients on these monthly indicators
are all zero. The penultimate row presents the first-stage F-statistic testing the hypothesis that
the coefficients on the instruments are zero in the first-stage regression, when TSLS is used,
and the final row presents the J-test of over identifying restrictions. All regressions contain an
intercept, the value of which is not reported in the table. The data are weekly, 1880-1886, for
a total of n = 328 observations. Note that there are 13 “months” in a year in this dataset (see
the variable definitions).

5
Advanced Econometrics STATA/EVIEW Problem Set 2

STATA .do file

#delimit ;
clear;
capture log close;
*************************************************************;
* ps2.do;
* Elasticity of demand for rail shipping services and;
* the Joint Executive Committee cartel;
*************************************************************;
set more off;
log using ps2.log, replace;
*************************************************************;
* read in data;
use grain;
desc;
su;
******************************;
* Data manipulations;
******************************;
gen lprice = log(price);
gen lquantity = log(quantity);
global months "seas1 seas2 seas3 seas4 seas5
seas6 seas7 seas8 seas9 seas10 seas11 seas12";
******************************;
* regressions and diagnostics;
* ------------- (1) ------------- ;
reg lprice cartel $months, r;
test $months;
* ------------- (2)------------- ;
reg lquantity lprice $months, r;
test $months;
* ------------- (3) ------------- ;
ivreg lquantity $months (lprice = cartel), r;
test $months;
* 1st stage F;
reg lprice cartel $months, r; test cartel;
* ------------- (4) ------------- ;
ivreg lquantity $months (lprice = ice), r;
test $months;
* 1st stage F;
reg lprice ice $months, r; test ice;
* ------------- (5) ------------- ;
ivreg lquantity $months (lprice = cartel ice), r;
test $months;
* J-test of overidentifying restrictions;
predict e1, residuals;
reg e1 cartel ice $months; test cartel ice; drop e1;
dis "J-test = " r(df)*r(F)
" p-value = " 1-chi2(r(df)-1,r(df)*r(F));
* 1st stage F;
reg lprice ice cartel $months, r; test ice cartel;
* ------------- (6) ------------- ;
ivreg lquantity ice $months (lprice = cartel), r;
test $months;
* 1st stage F;
reg lprice cartel ice $months, r; test cartel;
*************************************************************;
log close;
clear;
exit;

6
Advanced Econometrics STATA/EVIEW Problem Set 2

STATA OUTPUTS
. use grain;

. desc;

Contains data from grain.dta


obs: 328
vars: 17 14 Nov 2003 12:16
size: 10,168 (99.9% of memory free)
----------------------------------------------------------------------------------------
storage display value
variable name type format label variable label
----------------------------------------------------------------------------------------
week int %8.0g
price float %9.0g
cartel byte %8.0g
quantity long %12.0g
seas1 byte %8.0g
seas2 byte %8.0g
seas3 byte %8.0g
seas4 byte %8.0g
seas5 byte %8.0g
seas6 byte %8.0g
seas7 byte %8.0g
seas8 byte %8.0g
seas9 byte %8.0g
seas10 byte %8.0g
seas11 byte %8.0g
seas12 byte %8.0g
ice float %9.0g
----------------------------------------------------------------------------------------
Sorted by: week

. su;

Variable | Obs Mean Std. Dev. Min Max


-------------+--------------------------------------------------------
week | 328 164.5 94.82967 1 328
price | 328 .2464939 .0665263 .125 .4
cartel | 328 .6189024 .4863985 0 1
quantity | 328 25384.39 11632.77 4810 76407
seas1 | 328 .0853659 .2798523 0 1
-------------+--------------------------------------------------------
seas2 | 328 .0853659 .2798523 0 1
seas3 | 328 .0853659 .2798523 0 1
seas4 | 328 .0853659 .2798523 0 1
seas5 | 328 .0731707 .2608144 0 1
seas6 | 328 .0731707 .2608144 0 1
-------------+--------------------------------------------------------
seas7 | 328 .0731707 .2608144 0 1
seas8 | 328 .0731707 .2608144 0 1
seas9 | 328 .0731707 .2608144 0 1
seas10 | 328 .0731707 .2608144 0 1
seas11 | 328 .0731707 .2608144 0 1
-------------+--------------------------------------------------------
seas12 | 328 .0731707 .2608144 0 1
ice | 328 .4268293 .4953728 0 1

. ******************************;
. * Data manipulations;
. ******************************;
. gen lprice = log(price);

. gen lquantity = log(quantity);

7
Advanced Econometrics STATA/EVIEW Problem Set 2

. global months "seas1 seas2 seas3 seas4 seas5


> seas6 seas7 seas8 seas9 seas10 seas11 seas12";

. ******************************;
. * regressions and diagnostics;
. * ------------- (1) ------------- ;
. reg lprice cartel $months, r;

Linear regression Number of obs = 328


F( 13, 314) = 24.10
Prob > F = 0.0000
R-squared = 0.4876
Root MSE = .21117
------------------------------------------------------------------------------
| Robust
lprice | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
cartel | .3557896 .0260587 13.65 0.000 .3045179 .4070613
seas1 | .0413912 .0659721 0.63 0.531 -.088412 .1711944
seas2 | .1389543 .0637703 2.18 0.030 .0134831 .2644254
seas3 | .1914132 .0660733 2.90 0.004 .0614108 .3214157
seas4 | .0868868 .0607743 1.43 0.154 -.0326895 .2064631
seas5 | -.0002538 .0528694 -0.00 0.996 -.1042768 .1037692
seas6 | -.0582664 .0540139 -1.08 0.282 -.1645413 .0480084
seas7 | -.0996519 .0600613 -1.66 0.098 -.2178253 .0185215
seas8 | -.0684506 .0536257 -1.28 0.203 -.1739618 .0370607
seas9 | -.0386527 .0558264 -0.69 0.489 -.1484938 .0711884
seas10 | -.133088 .0508411 -2.62 0.009 -.2331202 -.0330557
seas11 | -.119189 .0573171 -2.08 0.038 -.2319632 -.0064148
seas12 | -.0207444 .0511557 -0.41 0.685 -.1213958 .0799069
_cons | -1.659898 .0466231 -35.60 0.000 -1.751631 -1.568165
------------------------------------------------------------------------------

. test $months;

( 1) seas1 = 0
( 2) seas2 = 0
( 3) seas3 = 0
( 4) seas4 = 0
( 5) seas5 = 0
( 6) seas6 = 0
( 7) seas7 = 0
( 8) seas8 = 0
( 9) seas9 = 0
(10) seas10 = 0
(11) seas11 = 0
(12) seas12 = 0

F( 12, 314) = 5.22


Prob > F = 0.0000

. * ------------- (2)------------- ;
. reg lquantity lprice $months, r;

Linear regression Number of obs = 328


F( 13, 314) = 11.42
Prob > F = 0.0000
R-squared = 0.2819
Root MSE = .40542
------------------------------------------------------------------------------
| Robust
lquantity | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lprice | -.6620433 .0754213 -8.78 0.000 -.8104383 -.5136484
seas1 | -.0955314 .0901446 -1.06 0.290 -.2728952 .0818324
seas2 | .1064381 .0844977 1.26 0.209 -.0598151 .2726913
seas3 | .1510242 .0916339 1.65 0.100 -.0292699 .3313182
seas4 | .1286241 .1236321 1.04 0.299 -.1146279 .3718761

8
Advanced Econometrics STATA/EVIEW Problem Set 2

seas5 | -.1166274 .1206273 -0.97 0.334 -.3539673 .1207125


seas6 | -.3666743 .0978573 -3.75 0.000 -.5592132 -.1741354
seas7 | -.2919127 .1338223 -2.18 0.030 -.5552145 -.0286108
seas8 | -.6490938 .095055 -6.83 0.000 -.8361191 -.4620685
seas9 | -.4108652 .0904551 -4.54 0.000 -.5888399 -.2328905
seas10 | -.2473659 .0898223 -2.75 0.006 -.4240957 -.0706362
seas11 | -.1993899 .0906922 -2.20 0.029 -.3778311 -.0209488
seas12 | -.1926615 .0870309 -2.21 0.028 -.3638989 -.021424
_cons | 9.2401 .1172646 78.80 0.000 9.009376 9.470823
------------------------------------------------------------------------------
. test $months;

( 1) seas1 = 0
( 2) seas2 = 0
( 3) seas3 = 0
( 4) seas4 = 0
( 5) seas5 = 0
( 6) seas6 = 0
( 7) seas7 = 0
( 8) seas8 = 0
( 9) seas9 = 0
(10) seas10 = 0
(11) seas11 = 0
(12) seas12 = 0

F( 12, 314) = 8.79


Prob > F = 0.0000

. * ------------- (3) ------------- ;


. ivreg lquantity $months (lprice = cartel), r;

Instrumental variables (2SLS) regression Number of obs = 328


F( 13, 314) = 10.68
Prob > F = 0.0000
R-squared = 0.2571
Root MSE = .41237
------------------------------------------------------------------------------
| Robust
lquantity | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lprice | -.9382019 .1357094 -6.91 0.000 -1.205217 -.6711871
seas1 | -.0957978 .1008492 -0.95 0.343 -.2942234 .1026277
seas2 | .1331146 .0905151 1.47 0.142 -.0449782 .3112073
seas3 | .1781513 .0974914 1.83 0.069 -.0136677 .3699703
seas4 | .1268854 .1274011 1.00 0.320 -.1237824 .3775531
seas5 | -.145355 .1208699 -1.20 0.230 -.3831722 .0924622
seas6 | -.4032347 .1000965 -4.03 0.000 -.6001795 -.20629
seas7 | -.339902 .137776 -2.47 0.014 -.6109828 -.0688212
seas8 | -.6925606 .0987327 -7.01 0.000 -.886822 -.4982993
seas9 | -.4583848 .0999481 -4.59 0.000 -.6550374 -.2617322
seas10 | -.3209647 .1002727 -3.20 0.002 -.518256 -.1236734
seas11 | -.2486807 .1002873 -2.48 0.014 -.4460007 -.0513607
seas12 | -.2147659 .0958747 -2.24 0.026 -.403404 -.0261278
_cons | 8.863583 .193356 45.84 0.000 8.483146 9.24402
------------------------------------------------------------------------------
Instrumented: lprice
Instruments: seas1 seas2 seas3 seas4 seas5 seas6 seas7 seas8 seas9 seas10
seas11 seas12 cartel
------------------------------------------------------------------------------
. test $months;

( 1) seas1 = 0
( 2) seas2 = 0
( 3) seas3 = 0
( 4) seas4 = 0
( 5) seas5 = 0
( 6) seas6 = 0
( 7) seas7 = 0

9
Advanced Econometrics STATA/EVIEW Problem Set 2

( 8) seas8 = 0
( 9) seas9 = 0
(10) seas10 = 0
(11) seas11 = 0
(12) seas12 = 0

F( 12, 314) = 9.98


Prob > F = 0.0000

. * 1st stage F;
. reg lprice cartel $months, r;

Linear regression Number of obs = 328


F( 13, 314) = 24.10
Prob > F = 0.0000
R-squared = 0.4876
Root MSE = .21117
------------------------------------------------------------------------------
| Robust
lprice | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
cartel | .3557896 .0260587 13.65 0.000 .3045179 .4070613
seas1 | .0413912 .0659721 0.63 0.531 -.088412 .1711944
seas2 | .1389543 .0637703 2.18 0.030 .0134831 .2644254
seas3 | .1914132 .0660733 2.90 0.004 .0614108 .3214157
seas4 | .0868868 .0607743 1.43 0.154 -.0326895 .2064631
seas5 | -.0002538 .0528694 -0.00 0.996 -.1042768 .1037692
seas6 | -.0582664 .0540139 -1.08 0.282 -.1645413 .0480084
seas7 | -.0996519 .0600613 -1.66 0.098 -.2178253 .0185215
seas8 | -.0684506 .0536257 -1.28 0.203 -.1739618 .0370607
seas9 | -.0386527 .0558264 -0.69 0.489 -.1484938 .0711884
seas10 | -.133088 .0508411 -2.62 0.009 -.2331202 -.0330557
seas11 | -.119189 .0573171 -2.08 0.038 -.2319632 -.0064148
seas12 | -.0207444 .0511557 -0.41 0.685 -.1213958 .0799069
_cons | -1.659898 .0466231 -35.60 0.000 -1.751631 -1.568165
------------------------------------------------------------------------------
. test cartel;

( 1) cartel = 0

F( 1, 314) = 186.42
Prob > F = 0.0000

. * ------------- (4) ------------- ;


. ivreg lquantity $months (lprice = ice), r;

Instrumental variables (2SLS) regression Number of obs = 328


F( 13, 314) = 0.88
Prob > F = 0.5783
R-squared = .
Root MSE = 1.1861
------------------------------------------------------------------------------
| Robust
lquantity | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lprice | -4.746673 2.711058 -1.75 0.081 -10.08081 .5874619
seas1 | -.099472 .3988326 -0.25 0.803 -.8841943 .6852502
seas2 | .5010066 .3843233 1.30 0.193 -.2551678 1.257181
seas3 | .5522584 .3926006 1.41 0.161 -.220202 1.324719
seas4 | .1029066 .3343657 0.31 0.758 -.5549738 .760787
seas5 | -.541534 .3859561 -1.40 0.162 -1.300921 .217853
seas6 | -.9074354 .506738 -1.79 0.074 -1.904467 .0895958
seas7 | -1.001718 .6048991 -1.66 0.099 -2.191886 .1884497
seas8 | -1.292006 .551103 -2.34 0.020 -2.376328 -.2076849
seas9 | -1.113723 .6005633 -1.85 0.065 -2.29536 .0679138
seas10 | -1.335957 .8232232 -1.62 0.106 -2.955688 .2837739
seas11 | -.9284443 .6263945 -1.48 0.139 -2.160905 .3040167
seas12 | -.5196062 .3995938 -1.30 0.194 -1.305826 .2666137

10
Advanced Econometrics STATA/EVIEW Problem Set 2

_cons | 3.671089 3.677894 1.00 0.319 -3.565344 10.90752


------------------------------------------------------------------------------
Instrumented: lprice
Instruments: seas1 seas2 seas3 seas4 seas5 seas6 seas7 seas8 seas9 seas10
seas11 seas12 ice
------------------------------------------------------------------------------
. test $months;

( 1) seas1 = 0
( 2) seas2 = 0
( 3) seas3 = 0
( 4) seas4 = 0
( 5) seas5 = 0
( 6) seas6 = 0
( 7) seas7 = 0
( 8) seas8 = 0
( 9) seas9 = 0
(10) seas10 = 0
(11) seas11 = 0
(12) seas12 = 0

F( 12, 314) = 0.77


Prob > F = 0.6855

. * 1st stage F;
. reg lprice ice $months, r;

Linear regression Number of obs = 328


F( 13, 314) = 5.02
Prob > F = 0.0000
R-squared = 0.1492
Root MSE = .27212
------------------------------------------------------------------------------
| Robust
lprice | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
ice | -.1090012 .0704964 -1.55 0.123 -.2477062 .0297039
seas1 | .0081187 .0890476 0.09 0.927 -.1670867 .183324
seas2 | .1056818 .0704615 1.50 0.135 -.0329546 .2443182
seas3 | .1073137 .0662347 1.62 0.106 -.0230063 .2376337
seas4 | -.0127843 .0736646 -0.17 0.862 -.157723 .1321543
seas5 | -.1585263 .08612 -1.84 0.067 -.3279715 .0109189
seas6 | -.232307 .1041778 -2.23 0.026 -.4372818 -.0273322
seas7 | -.2736925 .1019006 -2.69 0.008 -.4741868 -.0731981
seas8 | -.2573157 .0987979 -2.60 0.010 -.4517053 -.062926
seas9 | -.2719915 .1012688 -2.69 0.008 -.4712427 -.0727404
seas10 | -.3664268 .1030729 -3.56 0.000 -.5692277 -.1636259
seas11 | -.278405 .1048655 -2.65 0.008 -.4847329 -.072077
seas12 | -.1799604 .0940969 -1.91 0.057 -.3651006 .0051798
_cons | -1.263489 .0843021 -14.99 0.000 -1.429357 -1.09762
------------------------------------------------------------------------------
. test ice;

( 1) ice = 0

F( 1, 314) = 2.39
Prob > F = 0.1231

. * ------------- (5) ------------- ;


. ivreg lquantity $months (lprice = cartel ice), r;

Instrumental variables (2SLS) regression Number of obs = 328


F( 13, 314) = 10.60
Prob > F = 0.0000
R-squared = 0.2600
Root MSE = .41153
------------------------------------------------------------------------------
| Robust

11
Advanced Econometrics STATA/EVIEW Problem Set 2

lquantity | Coef. Std. Err. t P>|t| [95% Conf. Interval]


-------------+----------------------------------------------------------------
lprice | -.9210387 .1354758 -6.80 0.000 -1.187594 -.6544835
seas1 | -.0957813 .1000448 -0.96 0.339 -.2926243 .1010617
seas2 | .1314566 .0901632 1.46 0.146 -.0459437 .3088569
seas3 | .1764653 .0969466 1.82 0.070 -.0142816 .3672123
seas4 | .1269934 .1270899 1.00 0.318 -.1230621 .3770489
seas5 | -.1435696 .1208749 -1.19 0.236 -.3813968 .0942575
seas6 | -.4009625 .0999061 -4.01 0.000 -.5975325 -.2043925
seas7 | -.3369195 .1375215 -2.45 0.015 -.6074996 -.0663394
seas8 | -.6898592 .0983944 -7.01 0.000 -.883455 -.4962634
seas9 | -.4554315 .0993542 -4.58 0.000 -.6509155 -.2599475
seas10 | -.3163906 .099756 -3.17 0.002 -.5126653 -.1201158
seas11 | -.2456173 .0996501 -2.46 0.014 -.4416835 -.0495511
seas12 | -.2133921 .0952389 -2.24 0.026 -.4007791 -.0260052
_cons | 8.886984 .1931747 46.00 0.000 8.506903 9.267064
------------------------------------------------------------------------------
Instrumented: lprice
Instruments: seas1 seas2 seas3 seas4 seas5 seas6 seas7 seas8 seas9 seas10
seas11 seas12 cartel ice
------------------------------------------------------------------------------
. test $months;

( 1) seas1 = 0
( 2) seas2 = 0
( 3) seas3 = 0
( 4) seas4 = 0
( 5) seas5 = 0
( 6) seas6 = 0
( 7) seas7 = 0
( 8) seas8 = 0
( 9) seas9 = 0
(10) seas10 = 0
(11) seas11 = 0
(12) seas12 = 0

F( 12, 314) = 9.93


Prob > F = 0.0000

. * J-test of overidentifying restrictions;


. predict e1, residuals;

. reg e1 cartel ice $months;

Source | SS df MS Number of obs = 328


-------------+------------------------------ F( 14, 313) = 0.85
Model | 1.95678808 14 .139770577 Prob > F = 0.6097
Residual | 51.2225524 313 .163650327 R-squared = 0.0368
-------------+------------------------------ Adj R-squared = -0.0063
Total | 53.1793405 327 .162627952 Root MSE = .40454
------------------------------------------------------------------------------
e1 | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
cartel | .0194883 .0475745 0.41 0.682 -.074118 .1130946
ice | .4248399 .1229472 3.46 0.001 .1829324 .6667475
seas1 | -.0330833 .1130593 -0.29 0.770 -.2555355 .189369
seas2 | -.0330833 .1130593 -0.29 0.770 -.2555355 .189369
seas3 | -.0302992 .1135072 -0.27 0.790 -.2536329 .1930344
seas4 | .0303922 .1135809 0.27 0.789 -.1930864 .2538708
seas5 | .2181041 .1336962 1.63 0.104 -.0449529 .4811611
seas6 | .3934967 .163662 2.40 0.017 .0714799 .7155134
seas7 | .3934967 .163662 2.40 0.017 .0714799 .7155134
seas8 | .3943087 .1640062 2.40 0.017 .0716147 .7170027
seas9 | .3967447 .1651773 2.40 0.017 .0717464 .7217431
seas10 | .3967447 .1651773 2.40 0.017 .0717464 .7217431
seas11 | .3926847 .1633411 2.40 0.017 .0712993 .7140701
seas12 | .3926847 .1633411 2.40 0.017 .0712993 .7140701
_cons | -.4056769 .149945 -2.71 0.007 -.7007044 -.1106494

12
Advanced Econometrics STATA/EVIEW Problem Set 2

------------------------------------------------------------------------------
. test cartel ice;

( 1) cartel = 0
( 2) ice = 0

F( 2, 313) = 5.98
Prob > F = 0.0028

. drop e1;

. dis "J-test = " r(df)*r(F)


> " p-value = " 1-chi2(r(df)-1,r(df)*r(F));
J-test = 11.957129 p-value = .00054439

. * 1st stage F;
. reg lprice ice cartel $months, r;

Linear regression Number of obs = 328


F( 14, 313) = 22.40
Prob > F = 0.0000
R-squared = 0.4881
Root MSE = .21141
------------------------------------------------------------------------------
| Robust
lprice | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
ice | .035003 .0515901 0.68 0.498 -.0665042 .1365103
cartel | .3578984 .0264581 13.53 0.000 .3058402 .4099565
seas1 | .0387253 .0658425 0.59 0.557 -.0908247 .1682752
seas2 | .1362884 .0636229 2.14 0.033 .0111058 .261471
seas3 | .1890486 .0659901 2.86 0.004 .0592083 .3188889
seas4 | .0895226 .0613474 1.46 0.145 -.0311829 .2102282
seas5 | .0178628 .0595414 0.30 0.764 -.0992892 .1350148
seas6 | -.025741 .0715534 -0.36 0.719 -.1665274 .1150454
seas7 | -.0671265 .0765092 -0.88 0.381 -.2176638 .0834109
seas8 | -.0358373 .0717429 -0.50 0.618 -.1769965 .105322
seas9 | -.0057758 .0734007 -0.08 0.937 -.1501969 .1386452
seas10 | -.1002111 .070748 -1.42 0.158 -.2394129 .0389907
seas11 | -.0867514 .0742572 -1.17 0.244 -.2328577 .0593549
seas12 | .0116931 .0698451 0.17 0.867 -.1257322 .1491185
_cons | -1.693741 .0691376 -24.50 0.000 -1.829774 -1.557708
------------------------------------------------------------------------------
. test ice cartel;

( 1) ice = 0
( 2) cartel = 0

F( 2, 313) = 92.85
Prob > F = 0.0000

. * ------------- (6) ------------- ;


. ivreg lquantity ice $months (lprice = cartel), r;

Instrumental variables (2SLS) regression Number of obs = 328


F( 14, 313) = 11.27
Prob > F = 0.0000
R-squared = 0.2959
Root MSE = .40209
------------------------------------------------------------------------------
| Robust
lquantity | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lprice | -.8665865 .1338322 -6.48 0.000 -1.129911 -.603262
ice | .422934 .1346247 3.14 0.002 .1580502 .6878178
seas1 | -.1309732 .1029191 -1.27 0.204 -.333474 .0715275
seas2 | .0909521 .0949383 0.96 0.339 -.0958458 .2777501
seas3 | .135872 .1004123 1.35 0.177 -.0616964 .3334404

13
Advanced Econometrics STATA/EVIEW Problem Set 2

seas4 | .1525109 .134472 1.13 0.258 -.1120724 .4170942


seas5 | .0735618 .1301482 0.57 0.572 -.1825141 .3296377
seas6 | -.0060642 .1762475 -0.03 0.973 -.3528439 .3407155
seas7 | .0602324 .2010723 0.30 0.765 -.335392 .4558567
seas8 | -.2935991 .1748044 -1.68 0.094 -.6375393 .0503412
seas9 | -.0583723 .1754688 -0.33 0.740 -.4036198 .2868753
seas10 | .0858109 .1779318 0.48 0.630 -.2642826 .4359044
seas11 | .1517912 .1756827 0.86 0.388 -.1938771 .4974595
seas12 | .1786558 .1708101 1.05 0.296 -.1574255 .5147371
_cons | 8.573535 .2156367 39.76 0.000 8.149254 8.997815
------------------------------------------------------------------------------
Instrumented: lprice
Instruments: ice seas1 seas2 seas3 seas4 seas5 seas6 seas7 seas8 seas9
seas10 seas11 seas12 cartel
------------------------------------------------------------------------------
. test $months;

( 1) seas1 = 0
( 2) seas2 = 0
( 3) seas3 = 0
( 4) seas4 = 0
( 5) seas5 = 0
( 6) seas6 = 0
( 7) seas7 = 0
( 8) seas8 = 0
( 9) seas9 = 0
(10) seas10 = 0
(11) seas11 = 0
(12) seas12 = 0

F( 12, 313) = 3.23


Prob > F = 0.0002

. * 1st stage F;
. reg lprice cartel ice $months, r;

Linear regression Number of obs = 328


F( 14, 313) = 22.40
Prob > F = 0.0000
R-squared = 0.4881
Root MSE = .21141
------------------------------------------------------------------------------
| Robust
lprice | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
cartel | .3578984 .0264581 13.53 0.000 .3058402 .4099565
ice | .035003 .0515901 0.68 0.498 -.0665042 .1365103
seas1 | .0387253 .0658425 0.59 0.557 -.0908247 .1682752
seas2 | .1362884 .0636229 2.14 0.033 .0111058 .261471
seas3 | .1890486 .0659901 2.86 0.004 .0592083 .3188889
seas4 | .0895226 .0613474 1.46 0.145 -.0311829 .2102282
seas5 | .0178628 .0595414 0.30 0.764 -.0992892 .1350148
seas6 | -.025741 .0715534 -0.36 0.719 -.1665274 .1150454
seas7 | -.0671265 .0765092 -0.88 0.381 -.2176638 .0834109
seas8 | -.0358373 .0717429 -0.50 0.618 -.1769965 .105322
seas9 | -.0057758 .0734007 -0.08 0.937 -.1501969 .1386452
seas10 | -.1002111 .070748 -1.42 0.158 -.2394129 .0389907
seas11 | -.0867514 .0742572 -1.17 0.244 -.2328577 .0593549
seas12 | .0116931 .0698451 0.17 0.867 -.1257322 .1491185
_cons | -1.693741 .0691376 -24.50 0.000 -1.829774 -1.557708
------------------------------------------------------------------------------
. test cartel;

( 1) cartel = 0

F( 1, 313) = 182.98
Prob > F = 0.0000

14

You might also like