Dummy Variables

You might also like

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

8.

1
Courtesy: Bill Hung
Nature of “dummy” variable:

1) Variables that assume such “1” and “0” values


(2) Variables usually indicates the dichotomized
“presence” or “absence”, “yes” or “no”, etc.
(3) Variables indicates a “quality” or an attribute,
such as “male” or “female”,
“black” or “white”,
“urban” or non-urban”
“before” or “after”
“North” or “south”, “east” or “west”
………..etc.
8.2
obs Dummy Dummy Years of
Male Female Salary(K)
teaching
1 1 0 23 1
2 0 1 19.5 1
3 1 0 24 2
4 0 1 21 2
5 1 0 25 3
6 0 1 22 3
7 1 0 26.5 4
8 0 1 23.1 4
9 0 1 25 5
10 1 0 28 5
11 1 0 29.5 6
12 0 1 26 6
13 0 1 27.5 7
14 1 0 31.5 7
15 0 1 29 6
16 1 0 22 5
17 0 1 19 2
18 1 0 18 2
19 0 1 21.7 5
20 0 1 18.5 2
21 1 0 21 4
22 1 0 20.5 4
23 0 1 17 1
24 0 1 17.5 1
25 1 0 21.2 5
8.3
Separate male sample

Male
Sample:
(Gujarati-199
5, Table 15.1
& 15.5)

8.4
Separate female sample
Female
sample:
(Gujarati-1995,
Table
15.1 & 15.5)

8.5
Salary Y
3
5
^ ^ ^
Y = β1 + β2 X (male)
3
0

2
5

^ ^
2
0
Y = β’1+ β’^2X (female)

Mal
1 Female
e
5
Linear
Linear
(Male) (Female) X
1 teaching
0 0 1 2 3 4 5 6 7 8
years
Two separate models: Ym = β1 + β 2 Xm + um (male)
Yf = β’1 + β’2 Xf + uf (female)
8.6
Assuming β*2 = β2, same slope but different constant
between Yi and Xi.
1st model: Yi = β1 + β*1 Di + β2 Xi + ui

Assuming β*2 ≠ β2, different slope and different constant


between Yi and Xi.
2nd model: Yi = β1 + β*1 Di + β2 Xi + β*2 DiXi + ui

Yi = annual salary (each obs.)


Xi = years of teaching experience

Di = 1 if male
=0 otherwise (female) control
variable

8.7
Salary Y
3 ^ ^ ^
5
^ ^ ^ Y = β”1 + β”2 X (whole)
Y = β1 + β2 X (male)
3
0

2
5

^ ^ ^
2 Y = β’1+ β’2X (female)
0

Mal
1 F
e emal
5
L
einear
Linear
(Male) X
1 (Female) teaching
0 0 1 2 3 4 5 6 7 8 years
Two separate models: Ym = β1 + β2 Xm + um (male)
Yf = β’1 + β’2 Xf + uf (female) 8.8
D1 + D 2 = 1
D1 = 1 - D 2

Each dummy
identify two
different
categories,
but when
sum up two
dummies
it cannot
identify
which is
male or female

8.9
Caution in the use of Dummy variables (Dummy
variable trap)
If we introduce two dummy variables in one model to
identify two categories of one qualitative variable such as
Yi = β1+ β*1 D1i + β**1 D2i + β2 Xi + ui
where D1i = 1 if female
= 0 otherwise
where D2i = 1 if male
= 0 otherwise
This model cannot be estimated because of
perfect collinearity between D1 and D2

D1 = 1 - D2
or D2 = 1 - D1
or D1 + D2 = 1 ( Perfect collinearity )
8.10
Use two dummy variables to identify two different qualitative
categories in one model will be fall into the
“Trap of perfect multi-collinearity”

General rule : To avoid the perfect multicollinearity

1 If a qualitative variable has “m” categories,


introduce only “m-1” dummy variables.

Qualitative variable
age 1 2 3 4
1 m
0 0 0 0
Categories
dummy => D1 D2 D3 D4 D5 … Dm-1
8.11
2 When a category is assigned the value of zero, this
category is called a control category (or omitted group).

Now consider different intercepts of two groups:


Model: Yi = β1 + β*1 D2i + β2Xi + ui

D2i = 1 if male
= 0 otherwise, (i.e. female)

Measure the estimated result for two groups:

Male: ==> Y
^ i = (β ^ 1 D2i)+^ β2Xi
^1 + β* D2i = 1

Female: ==> ^
Yi = β^1 + β^2Xi D2i = 0

8.12
In order to test whether there is any difference in
the relationships between two categories

Compare: ^
Yi = β^1 + β^2Xi
^ ^ D)+ β^ X
Yi = (β^1 + β* 1 2 i

Check the t-statistics

^ there is different
If t-statistics is significant in β* 1,
in constant term.
^
=>same β2 means two categories of X have the
same relationship with Y

8.13
H0 : β*1 = 0
H1 : β*1 > 0 or H1 : β*1 ≠ 0
^
Appropriate test is the t-test on β* 0

Compare the critical tc(α/2, n-k) and the estimated t*

If t* > t c ==> reject H0 : β*1 = 0

^ ^ D + β^ X + β*
Y = β^1 + β* 1 i 2 i ^ 2DiXi This part is testing
= = whether any
This part is
difference in slope
testing the Check Check of two categories
difference t-statistics t-statistics
of 8.14
Separate Examples for female and male:

Female Male

The two regression results performed differently in slope


and intercept. But are they really statistically different?
We cannot answer from these two separate regression results
unless you test the F*.
8.15
Set two dummies for the Example: Table 15.1 +15.5

D1:Female =1 D2:Male =1
others = 0 others = 0

^ ^ X
Yi = ( ^ ^ D1) +β
β’1 +β” 1 2 i
^ ^ D2)+^β X
Yi = (β^1 + β* 1 2 i
= (16.656+1.2810) +
= (19.937-1.2810) + 1.561X
1.561X 8.16
Whole Sample

^
Yi = β^1 + β^2Xi
=
17.095+1.608Xi 8.17
D1: Female =1

= 18.689 + 1.373
Male: Y = β^1 + β^2Xi Xm
^ D1)+(β^ +β^’ D1)X
Female: Y = (β^1 + β’ 1 2 2 i = 16.255 +1.677 Xf
8.18
If D2: Male
=1

Female: Y = ^β1 + β^2 Xi =16.255 + 1.677 X


Male: Y = (β ^ D2)+(β^ + β’
^ + β’ ^ D2)X =18.689 + 1.373 X
1 1 2 2
8.19
2
One qualitative variable with more than two categories

(Y) (X)
(Health care) = β1 + β’1 D2 + β’’1 D3 + β2Income + u

D2 = 1 if high school education


= 0 otherwise

D3 = 1 if college education
= 0 otherwise

8.20
Health College education
care D3 = 1
^
Y = (β^ + β^” D )+β ^X
1 1 3 2

High school education D2 = 1


^
Y = (β^1 + β’1 D2)+ β^2X
^

Less than high school education


^
β’’ ^
1 Y = β^1 + β^2 X
β’^1

β^1
8.21
income
D2 = 1 High school D3 = 1 College
= 0 otherwise = 0 otherwise
=========================================
obs Y X D2 D3
=========================================
1 6.000000 40.00000 0.000000 1.000000
2 3.900000 31.00000 1.000000 0.000000
3 1.800000 18.00000 0.000000 0.000000
4 1.900000 19.00000 0.000000 0.000000
5 7.200000 47.00000 0.000000 1.000000
6 3.300000 27.00000 1.000000 0.000000
7 3.100000 26.00000 1.000000 0.000000
8 1.700000 17.00000 0.000000 0.000000
9 6.400000 43.00000 0.000000 1.000000
10 7.900000 49.00000 0.000000 1.000000
11 1.500000 15.00000 0.000000 0.000000
12 3.100000 25.00000 1.000000 0.000000
13 3.600000 29.00000 1.000000 0.000000
14 2.000000 20.00000 0.000000 0.000000
15 6.200000 41.00000 0.000000 1.000000
========================================= 8.22
8.23
Measuring the estimated results of different groups:

Less than high school: Y^i = -1.2859 + 0.1722 Xi

High school: Y^i = (-1.2859 - 0.068 ) + 0.1722 Xi


If t value of D2 is = -1.3539 + 0.1722 X
statistically significant = -1.2859 + 0.1722 X

College: Y^i = (-1.2859 + 0.447 ) + 0.1722 Xi


If t value of D3 is = -0.8389 + 0.1722 Xi
statistically significant = -1.2859 + 0.1722 X

If t-test is not
statistically significant
8.24
One Qualitative variable with many categories :
Example : An estimate model on three different
age’s medical care expenditure

Yi = β1 + β’1 D1 + β’’1 D2 + β2 Xi + ui
(t-value) (t-value)

where D1 = 1 if 55 > age > 25


= 0 otherwise A1 + A 2 ≠ 1

D2 = 1 if age > 55
= 0 otherwise
0 A1 =1 A2 =1
25 55

8.25
Qualitative variable with many categories :(Cont.)
measure the estimated models are :
^
age below 25 Y = β^1 + β^2 X
^
25 < age < 55 Y = (β^1 + β’^1D1)+ β^
2
X
^ ^ D )+β^ X
age > 55 Y = (β^1 + β’’ 1 2 2

H0 : β’1 = 0, β’’1 = 0 t1*


Compare to tc(α/2, n-k)
H1 : β’1 ≠ 0, β’’1 ≠ 0 t2*

8.26
In scatter diagram :
Y
Y^ = ( β^1+ β”
^ )+β^X
1 2

5 5
age > Y^ = ( β^1 + β’^1)+ β^2X
5 5
<a g e < Y^ = (β^1 ) +^β2 X
25
< 2 5
α^
’’0 age
^
α’ 0

α^0

8.27
One Qualitative variable with many categories :
Example : An estimate model on four different age’s
medical care expenditure

Y = β1 + β’1 D1 + β”1 D2 + β”’1 D3 + β2 X + u

where D1 = 1 if age > 55


=0 otherwise
D2 = 1 if 35 < age ≤ 55
=0 otherwise
D3 = 1 if 15 < age ≤ 35
=0 otherwise

8.28
Qualitative variable with many categories :(Cont.)

Measure the estimated models are :


age ≤ 15 Y^ = ^β1 + β^2 X

15 < age ≤ 35 Y^ = (β^1 + β’


^ D )+β X
1 3 ^2

35 < age ≤ 55 Y^ = (β^1 + β”


^ D )+ β X
2 2 ^2

age > 55 Y^ = (β^1 + β^’’’1D1)+^β2 X

8.29
Two qualitative variables
(Y) Salary = β1 + β’1D1 + β”1 D2 + β2X + u
or Y = β1+ β’1D1+ β”1D2 + β2X + β’2D1*X + β”2D2*X + u’

D1 = 1 if male
sex
= 0 otherwise
D2 = 1 if white
= 0 otherwise race

(1) Mean salary for “non-white” female teacher:

Y^ = β^1 + β^2X that is D1 = 0, D2 = 0


(2) Mean salary for “non-white” male teacher:

Y^ = (β^1 + β’
^ D ) + (β^+ β’
1 1 2
^ D )X
2 1
that is D1 = 1, D2 = 0
8.30
(3) Mean salary for “white” female teacher:

^ D ) + β^ X + β”
Y = (β^1 + β’’
^
DX that is D1 = 0, D2 = 1
1 2 2 2 2

(4) Mean salary for “white” male teacher:

Y^ = (β^1 + β’ 1 1
^ D )+ (β^+ β’^ D + β”
^ D +β”
1 2 2 2 1
^ D )X
2 2
that is D1 = 1,
D2 = 1

8.31
Different types of dummy regression:
1. Identical regression:
Y = β1 + β2 X + β’1D + β’2D*X
H0 : β’1 = 0 and β’2 = 0 D = 1 if 1970-1981
= 0 otherwise
2. Parallel regression:
(1982-1995)
Y = β1 + β2 X + β’1 D + β’2D*X
H0 : β’2 = 0
3. Concurrent regression:
Y = β1 + β2 X + β’1 D + β’2D*X
H0 : β’1 = 0
4. Dissimilar regression:
Y = β1 + β2 X + β’1D + β’2D*X
H0 : β’1 ≠ 0 and β’2 ≠ 0
8.32
(1970-1981): Yt = A1 + A2 Xt + u1t
(1982-1995: Yt = B1 + B2 Xt + u2t

Y Y
B
1 2

A2 = B 2 A2
1 B1 1
A1
A1 = B 1
X
X A1 ≠ B1, A2 = B2
Identical regressions Parallel regressions

8.33
Y Y
A1
A B
1
1
1 1
B1 1

1 B0
A0 = B 0 A0

X X
A0 = B0, A1 ≠ B1 A0 ≠ B0, A1 ≠ B1
Concurrent regressions dissimilar regressions

8.34
Interactive effects between the two qualitative
variables

Spending(Y) = β1 + β’1 D1 + β”1 D2 + β2 income(X) + u

D1 = 1 if female
sex
= 0 otherwise
D2 = 1 if college graduate
education
= 0 otherwise
Interaction
effect:
Spending(Y) = β1 + β’1D1 + β”1D2 + β’”1D1*D2 + β2income(X) + u

β’1 = different effect of being a female


β”1= different effect of being a college graduate
β”’1 = different effect of being a female with college graduate
8.35
Concurrent model (or Covariance, or Slope shift model)

Example : how can we test the hypothesis that the gasoline


spending is different between a new car and a used car ?
Let us assume that at the begin mile, there is no
different between used car and new car.

gas spending o used car ^


Y = ^β1+ β^2X
Y o
^
o o
Y=^ β1+ (γ^2 + γ^’2)X
o o
o * New car ^Y = ^β + ^
1
γ X
2
o * *
o *
o * *
* *
* * *

β^0
X miles running
8.36
Let β2= γ2 + γ’2 D where D = 1 if used car
= 0 otherwise
Now in one model :
Yi = β1 + (γ2 + γ’2 D) Xi + ui multiplicative
= β1 + γ2 Xi + γ’2 D*Xi +ui dummy variable
= β1 + γ2 Xi + γ’2 Zi + ui

The estimated relations are :


new car : Y^i = β^1 + γ^2 Xi
==
used car : Y^i = β^1 + (γ2^+ γ^’2D) Xi where D=1
or Y^i = β^1 + β^2 Xi
==

If ^
γ’2≠ 0, means the estimated slopes for cars is different.
8.37
Test whether γ^ ’2 = 0 or not ?
^ ^
(i) Compare : (a) Y = ^ β 1 + β2 X
Two separate (b) Y ^ = β^ + ^γ X
models 1 2

^ = β^ +γ^ X + γ^’ Z
(ii) use t-test on γ^’2:Y 1 2 i 2

compare tc(α, N-3) and t*


^ =0
H0 : γ’ 2
^ >0
H1 : γ’ If t* > tc(α, N-3)
2

or (γ’2 ≠ 0) => reject H0

8.38
…...

…...

…...

…...

…...
^ = β^ + γ^ X + γ’
Y ^ Z
1 2 i 2 i

Check the t-value

8.39
Shifts in both intercept and slope
Example: Estimating Seasonal effects :
E = β 1 + β2 T + u
E : electricity consumption
T : temperature
To capture effect of seasonal factors
E = β1 + β’1D1 +β”1D2 + β’’’1 D3 + β2T + u

where D1 = 1 if winter
0 otherwise
D2 = 1 if spring
0 otherwise Q1 Q2 Q3 Q4
spring summer fall winter
D3 = 1 if summer
0 otherwise
8.40
Measure the basic difference of four seasonal results :
Fall E = β^1 + β^2 T
^
Winter ^
E = (β^1 + β’
^ )+ β T
1 ^2
Spring ^
E = (β^1 + β”
^ )+ β T
1 ^2
^
Summer E^ = ( β^ +β”’ )+ β^ T
1 1 2

E
^ ^ + β”’ )+ β^ T (Summer)
E=(β 1 ^ 1 2

E^= (β^1 + β” ^
^ 1) + β2 T (Spring)
E^= (β^1 + β’^1) + β^2 T (winter)
E^= β^1 + β^2T (Fall)
^
β’’’
1
β^’’1 ^
β’
^1
β1 T
8.41
Estimating Seasonal effects :(Cont.)
Also consider the slope in different seasons

Let β*2 = β2 + β’2D1 + β’’2 D2 + β’’’2 D3

Thus, the full general specification is

E = [β1+ β’1D1 + β”1D2+ β”’1D3] + β2T + β’2 D1 T + β”2D2 T


+ β”’2D3 T + u Z1 Z2
Z3

8.42
Measure the four seasonal results :
Fall E
^ = β^1 + β^2 T
Winter ^
E = (β^1 + β’
^ )+ (β + β’ ) T
1 ^2 ^2
Spring ^
E = (β^1 + β”
^ )+(β + β” ) T
1 ^2 ^ 1
^
Summer E = ( β +β”’ )+ (β^ + β”’
^ ^
1 1 2
^ )T
2
E ^ ^+ β”’ )+(β ^+ β”’^ )T(Summer)
E=(β 1 ^1 2 2

E = (β^1 + β” )+(β ^+ β”^ )T (Spring)


^1 2 2

^ ^ ^
E = (β1 + β’1)+(β2^+β’^
2
)T(winter)
^
β’’’
1 E^= β^1 + β^2T (Fall)
β^’’1 ^
β’ 1

β^1 T 8.43
Quarterly effect is same as seasonal effect
D1 = 1 1st Quarter
=0 otherwise

D2 = 1 2nd Quarter
=0 otherwise

D3 = 1 3rd Quarter
=0 otherwise

Control quarter is the 4th quarter

8.44
1. Set the seasonal dummy = 1 if there is the 1st quarter
= 0 otherwise

8.45
How
does the
quarterl
y
dummy
variable
look
like?

8.46
(2) Structural Test based on Dummy variables
Basic model 1989
1960
1974
Yt = β 1 + β 2 Xt + u t

Define a dummy variable : D = 1 for the period


1974 onward
= 0 otherwise
To test whether the structures of two periods are
different, the specification must assume that
β*1 = β1 + β’1 D
β*2 = β2 + β’2 D

Dummy regression:
Yt = β1 + β’1 D + β2 Xt + β’2D Xt + ut
8.47
The Chow test on the Unemployment rate-capacity utilization rate

_
Dependent Var. Constant CAPt R2 F RSS n
Sample : 60 - 89
^
unemplt 30.0 -0.293 0.761 93.6 17.15 30
(12.1) (9.7) RSSR
Sample : 60 - 73
^
unemplt 19.64 -0.175 0.59 19.7 4.69 14
(5.9) (4.4) RSS1
Sample : 74 - 89
^
unemplt 30.63 -0.296 0.871 102.1 3.29 16
(13.1) (10.1) RSS2
Note : t-values are in parentheses
8.48
Restriction F-test procedures:
H0 : No structural change
H1 : yes
For the unrestricted model :
RSSu = RSS1 + RSS2 = 4.69 + 3.29
= 7.98

*
(RSSR - RSSu) / k (17.15 - 7.98) / 2
F = = = 14.9
RSSu / (T - 2k) 7.98 / (30 - 4)

Fc 0.01, k, T -2k = Fc 0.01 = 5.53


=
0.05 0.05, 2, 26
3.37
F* > Fc ==> reject H0

8.49
Using the dummy variable to identify the structural change
The unemployment rate - capacity utilization rate
Sample : 1960 - 1989
Dt = 1 1974 to 1980
=0 prior to 1974

^
unempl = 19.6 + 11.0 Dt - 0.175 CAPt - 0.121 (Dt*CAPt)
(6.7) (2.7) (5.0) (2.5)
_
R2 = 0.88 SEE = 0.554 F = 72.2 n = 30

The estimated of 1960-1973:


^
unempl = 19.6 - 0.175 CAP
The estimated of 1974-1980:
^
unempl = (19.6+11.0) - (0.175+0.121)CAP
= 30.6 - 0.296 CAP
8.50
Observed data
Year Ut CAPt Dt Dt*CAPt
D=1 if t ≥ 74
60 4.20 5.70 0 0
61 0 0 =0 otherwise
62 0 0
…………….……
.
……...….……...
63 0 0
… … ...
68 0 0
69 0 0
70 0 0
71 0 0
72 0 0
73 0 0
74 10.5 1 10.5
75 11.2 1 11.2
76 1
77 1
... 1
... 1
... 1
89 1
Ut = β1 + β2 CAPt + β’1Dt + β’2 Dt*CAPt
8.51
(2) Structural stability test based on dummy variables
Now the basic model becomes 1995
1950
1974 : 1
Yt = β1 + β’1 D + β2 Xt + β’2 D Xt + ut
==> Y = β + β’ D + β X + β’ X* + u
t 1 ===
1 2 t ==
2 t t
Check t* > 2.0

The estimated models are :


^ ^
1974 : 1 and onward Y = β1 + β^2 X

^ ^ D)+(β^ + β’ D) X
Prior to 1974 : 1 Y = ( β^1 + β’ 1 2 ^2
α* β*

8.52
GENR DUMMY = 1 (sample 1970 - 1980)
GENR DUMMY = 0 (sample 1981 - 1991)
=================================================
obs SAVINGS INCOME DUMMY D*INCOME
=================================================
1970 57.50000 831.0000 1.000000 831.0000
1971 65.40000 893.5000 1.000000 893.5000
1972 59.70000 980.5000 1.000000 980.5000
1973 86.10000 1098.700 1.000000 1098.700
1974 93.40000 1205.700 1.000000 1205.700
1975 100.3000 1307.300 1.000000 1307.300
1976 93.00000 1446.300 1.000000 1446.300
1977 87.90000 1601.300 1.000000 1601.300
1978 107.8000 1807.900 1.000000 1807.900
1979 123.3000 2033.100 1.000000 2033.100
1980 153.8000 2265.400 1.000000 2265.400
1981 191.8000 2534.700 0.000000 0.000000
1982 199.5000 2690.900 0.000000 0.000000
1983 168.7000 2862.500 0.000000 0.000000
1984 222.0000 3154.600 0.000000 0.000000
1985 189.3000 3379.800 0.000000 0.000000
1986 187.5000 3590.400 0.000000 0.000000
1987 142.0000 3802.000 0.000000 0.000000
1988 155.7000 4075.900 0.000000 0.000000
1989 175.6000 4664.200 0.000000 0.000000
1990 175.6000 4664.200 0.000000 0.000000
1991 199.6000 4828.300 0.000000 0.000000 8.53
=================================================
Savings = β1 + β2 Income + β’1D + β’2D*Income + u

D=1 1970--1980
=0 1981--1991

1 Estimated for 1970 - 1980 : D = 1

Savings = (β^1 + β’
^ ) +(β + β’^ ) Income
1 ^2 2

2 Estimated for 1981 - 1991 : D = 0


Savings = β^1 + β^2 Income

Dummy Regression Results: 1970 - 1991 :


Savings = 217.81 - 203.19 D - 0.010 Income + 0.066 D*Income
(7.96) (-6.19) (-1.39) (4.63)
8.54
70 - 80:
Savings = (217.81 - 203.19) + (-0.010 + 0.066) Income
= 14.62 + 0.056 Income
81 - 91:
Savings = 217.81 - 0.010 Income

1970 - 1991 :
Savings = 57.63 + 0.031 Income
(3.86) (5.95)
1970 - 1980 :
Savings = 14.61 + 0.056 Income
(1.40) (7.93)
1981 - 1991 :
Savings = 217.81 + 0.010 Income
(6.16) (-1.08)
8.55
LS // Dependent Variable is SAVINGS
Date: 03/02/99 Time: 22:23
Sample: 1946 1963 Only consider the difference in intercept
Number of observations: 18
=====================================================
Variable Coefficient Std. Error t-Statistic. Prob.
=====================================================
C -1.250957 0.364879 -3.428419 0.0037
DUMMY 0.091857 0.181244 0.506816 0.6197
INCOME -0.125655 0.017837 -7.044517 0.0000
=====================================================
R-squared 0.919909 Mean dependent var 0.773333
Adjusted R-squared 0.909230 S.D. dependent var 0.642806
S.E. of likelihood 0.193665 Akaike info criterion -3.132238
Sum squared resid 0.562593 Schwarz criterion -2.983843
Log likelihood 5.649250 F-statistic 86.14326
Durbin-Watson stat 0.976197 Prob(F-statistic) 0.000000
=====================================================
Savings = -1.250 + 0.091 Dummy + 0.125 Income
(-3.42) (0.506) (7.04)
8.56
LS // Dependent Variable is SAVINGS
Date: 03/02/99 Time: 22:23
Sample: 1946 1963 Whether intercept and slope change?
Number of observations: 18
=====================================================
Variable Coefficient Std. Error t-Statistic. Prob.
=====================================================
C -1.750172 0.331888 -5.273377 0.0001
DUMMY 1.483923 0.470362 3.154852 0.0070
INCOME 0.150450 0.016286 9.238172 0.0000
DINCOME -0.103422 0.033260 -3.109471 0.0077
=====================================================
R-squared 0.952626 Mean dependent var 0.773333
Adjusted R-squared 0.942475 S.D. dependent var 0.642806
S.E. of likelihood 0.154173 Akaike info criterion -3.546228
Sum squared resid 0.332771 Schwarz criterion -3.348367
Log likelihood 10.37516 F-statistic 93.84109
Durbin-Watson stat 1.468099 Prob(F-statistic) 0.000000
===================================================== 8.57
^
Savings = -1.750 + 1.483 D + 0.150 Income - 0.103 (Income*D)
(-5.273) (3.154) (9.238) (-3.109)

1946 - 1954 : = -0.2662 + 0.047 Income D1 = 1

1955 - 1963 : = -1.750 + 0.150 Income D1 = 0

8.58
The interpretation of Dummy variables in Semilog Regression
(Salary) (years of teaching)
ln Y = β1 + β2 X + β’1 D D1 = 1 for male
=0 otherwise

ln Y = 2.9298 + 0.0546 X2 + 0.1341 D


^ t=(481.5) (48.3) (27.2)
R2 = 0.995 DW = 2.51
Need to take antilog of 0.1341 = 1.1435
This means the starting salary of male teacher is higher than the
female teacher by 14.35 percent.
The estimated male teacher salary :
ln^Y = (2.9298 + 0.1341) + 0.0546 X
ln^Y = 3.0639 + 0.0546 X
8.59
Tugas
(Buku Basic Econometrics (Damodar Gujarati, 2003))

Kerjakan latihan
1.Exercise hal. 32 No. 1.1
2.Exercise hal. 52 No. 2.5 dan 2.6
3.Problems hal. 96 No. 3.19
4.Problems Hal. 98 No. 3.21
5.Exercise hal. 151 No. 5.1
6.Exercise hal. 152 No. 5.3
7.Exercise hal. 196 No. 6.13
8.Exercise hal. 233 No. 7.2
9.Exercise Hal. 235 No. 7.16

8.60

You might also like