395 Event Studies
To illustrate the problem, consider the following data of returns for
General Mills (GIS) and the S&P 500. We want to run a regression of
the GIS returns on the S&P 500 returns for 10 dates before 29 January
1997:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
GFEDCBA
Date
General
Mills
GIS
Return SP500 Return
3-Jan-97 57.96 748.03
6-Jan-97 58.19 0.0040 <
--
=LN(B4/B3) 747.65 -0.0005 <
--
=LN(E4/E3)
7-Jan-97 59.33 0.0194 753.23 0.0074
8-Jan-97 59.33 0.0000 748.41 -0.0064
9-Jan-97 59.91 0.0097 754.85 0.0086
10-Jan-97 59.91 0.0000 759.5 0.0061
13-Jan-97 59.68 -0.0038 759.51 0.0000
14-Jan-97 59.91 0.0038 768.86 0.0122
15-Jan-97 59.56 -0.0059 767.2 -0.0022
16-Jan-97 59.56 0.0000 769.75 0.0033
17-Jan-97 59.56 0.0000 776.17 0.0083
20-Jan-97 59.44 -0.0020 776.7 0.0007
21-Jan-97 60.71 0.0211 782.72 0.0077
22-Jan-97 61.4 0.0113 786.23 0.0045
23-Jan-97 62.09 0.0112 777.56 -0.0111
24-Jan-97 61.63 -0.0074 770.52 -0.0091
27-Jan-97 61.29 -0.0055 765.02 -0.0072
28-Jan-97 61.06 -0.0038 765.02 0.0000
29-Jan-97 62.09 0.0167 772.5 0.0097
30-Jan-97 62.21 0.0019 784.17 0.0150
31-Jan-97 62.44 0.0037 786.16 0.0025
3-Feb-97 62.09 -0.0056 786.73 0.0007
Starting date 29-Jan-97
Rows from top of data
to starting date
19 <
--
=COUNTIF(A3:A24,"<="&TEXT(B26,"0"))
Regression
Intercept 0.0022 <
--
=INTERCEPT(OFFSET(A3:F24,B27-11,2,10,1),OFFSET(A3:F24,B27-11,5,10,1))
Slope 0.5198 <
--
=SLOPE(OFFSET(A3:F24,B27-11,2,10,1),OFFSET(A3:F24,B27-11,5,10,1))
R-squared 0.1413 <
--
=RSQ(OFFSET(A3:F24,B27-11,2,10,1),OFFSET(A3:F24,B27-11,5,10,1))
Check
Intercept 0.0022 <
--
=INTERCEPT(C11:C20,F11:F20)
Slope 0.5198 <
--
=SLOPE(C11:C20,F11:F20)
R-squared 0.1413 <
--
=RSQ(C11:C20,F11:F20)
USING OFFSET, COUNTIF, AND TEXT
TO LOCATE A REGRESSION IN A DATA SET
To run this regression, we fi rst use Countif(data,condition) to count
the row number of the data on which the starting date falls. Since condi-
tion must be a text entry, we translate the date in cell B26 to a text
by using Text(b26,≤0≤). The Excel function =Countif(A3:A24,≤<=
≤&Text(B26,≤0≤)) now counts the number of cells in the column A3:A24