Академический Документы
Профессиональный Документы
Культура Документы
FIN 475
Finance Dept. | CoB | JMU
MODULE 5 5.2 2
Dummy Variables
ANOVA & ANCOVA
Elias J. Semaan
ANOVA EXAMPLE
SUMMARY OUTPUT Regression Statistics M lti l R Multiple R Square Adjusted R Square Standard Error Observations ANOVA df Regression Residual Total 1 8 9 SS 26.896 3.888 30.784 MS F Significance F 26.896 55.34156379 7.33967E-05 0.486 0 934719543 0.934719543 0.873700624 0.857913202 0.697137002 10
Intercept SEX
Coefficients Standard Error t Stat P-value 18 0.311769145 57.73502692 8.99405E-12 3.28 0.440908154 7.439191071 7.33967E-05
Lower 95% Upper 95% Lower 95.0% Upper 95.0% 17.28105906 18.71894094 17.28105906 18.71894094 2.263263975 4.296736025 2.263263975 4.296736025
ANOVA EXAMPLE
Salary
Sex Female
T for H0: Parameter INTERCEPT SEX Estimate 18 18.00000000 00000000 3.28000000 Parameter=0 57 57.74 74 7.44 0 0.0001 0001 0.0001
Male
Pr > |T| Std Error of Estimate 0 0.31176915 31176915 0.44090815
Thi model This d l postulates t l t that th t male l and d female f l professors salary functions in relation to the years of teaching experience have the same slope but different intercepts. When Di is equal to one (male case), the factor 1Di is a constant term that is added to the intercept . Accordingly,
f a dummy y variable can be seen as the inclusion of constructing 2 different regression lines but with the same slope.
22.0 3 0 26.5 4 1 23.1 4 0 25.0 5 0 28.0 5 1 29.5 6 1 26.0 6 0 27.5 7 0 31.5 7 1 29 0 8 0 29.0
ANCOVA EXAMPLE
SUMMARY OUTPUT Regression Statistics Multiple R R Square Standard Error Observations ANOVA df Regression Residual Total 2 12 14 SS 157.7020476 1.067285714 158.7693333 MS 0.088940476 F Significance F 9.22751E-14 78.85102381 886.5594967 0.996633212 0.993277759 0.298228899 15
Intercept X SEX
Coefficients Standard Error 17.96928571 0.191955122 1 370714286 0.035645171 1.370714286 0 035645171 3.333571429 0.155373699
Upper 95.0% t Stat P-value Lower 95% Upper 95% Lower 95.0% 93.61191077 1.4761E-18 17.55105143 18.38752 17.55105 18.38752 38 45441721 6 38.45441721 6.15868E-14 15868E 14 1.293050129 1 293050129 1 1.448378442 448378442 1.29305 1 29305 1.448378 1 448378 21.4551848 6.1339E-11 2.99504122 3.672101637 2.995041 3.672102
Example
Salary Male
21.30286
Female
Years
T for H0: Parameter INTERCEPT YEARS SEX Estimate 17.96928571 1.37071429 3 3.33357143 33357143 Parameter=0 93.61 38.45 21 21.46 46 Pr > |T| 0.0001 0.0001 0 0.0001 0001 Std Error of Estimate 0.19195512 0.03564517 0 0.15537370 15537370
will be added to 2. Accordingly, the slope for females will be 2 while the slope for males will be (2 + 3).
8
This model postulates that male and female professors salary functions in relation to the years of teaching experience could have different intercepts and different slopes. When Di is equal to one (male case), case) the factor 1Di is a constant term that is added to the intercept , and 3
Years*SEX 0 1 0 2 0 3 0 4 5 0 6 0 7 0 0
Example
Salary Slope=2.116-0.695=1.421 Male
Female
Slope=2.116
Years
D1
1 0 0 0
D2 D3
0 1 0 0 0 0 1 0
10