Chapter 7. Software Application
Chapter 7. Software Application
Application
Baro Beyene
OSU
2022
1
Content
Chapter 8
2
1. Linear Regression Analysis
11/3/2022 3
Linear Regression Analysis
11/3/2022 4
Linear Regression Analysis
11/3/2022 5
Linear Regression Analysis
11/3/2022 6
Linear Regression Analysis
11/3/2022 7
Linear Regression Analysis
• According to the OLS model outputs, five variables
(famsz, irrig, frtqt, lninom, and ofarm) are statistically
significant variables affecting daily calorie intake of
households.
• Family size, access to irrigation, and access to off-farm
activities are factors adversely affecting daily calorie
intake while the remaining two variables enhance
calorie intake of households.
• About 19.3% of the variation in daily calorie intake is
explained by this OLS model
11/3/2022 8
Linear Regression Analysis
• However, interpretation of OLS model outputs is
possible if and only if the basic assumptions of
classical linear regression model are satisfied.
• There are many post-estimation tests used to check the
satisfaction of the basic assumptions of multiple linear
regression model.
• Tests for heteroscedasticity, omitted variables and
multicollinearity are the most important postestimation
tests that must be reported with the OLS model
outputs.
11/3/2022 9
Linear Regression Analysis
-Multicollinearity
-Hetroscedasticity
-Normality
-Model Misspecification
11/3/2022 10
Diagnostic Test/Post Estimation Tests
1. Tests for Normality of Residuals
– kdensity -- produces kernel density plot with normal
distribution over laid.
11/3/2022 11
Diagnostic Test/Post Estimation Tests
1. Tests for Normality of Residuals
– pnorm -- graphs a standardized normal probability (P-P) plot.
– qnorm --- plots the quantiles of varname against the quantiles of
a normal distribution.
– mvtest normal residual (Doornik-Hansen test for multivariate
normality)
11/3/2022 12
Diagnostic Test/Post Estimation Tests
1. Tests for Normality of Residuals
– The Skewness-Kurtosis (Jarque-Bera) test
H0: the residual distribution is normal
11/3/2022 13
Diagnostic Cont…
2. Tests for Heteroscedasticity
– hettest – performs Breusch-Pagan/ Cook and Weisberg test
for heteroscedasticity.
– H0: No heteroscedasticity
11/3/2022 14
Diagnostic Cont…
2. Tests for Heteroscedasticity
– imtest-- computes the White general test for
Heteroscedasticity
– H0: No heteroscedasticity
11/3/2022 15
Diagnostic Cont…
11/3/2022 17
Diagnostic Cont…
11/3/2022 18
Diagnostic Cont…
11/3/2022 19
2 Linear Probability Model
Linear Probability Model(LPM)
Y=1
Y=0 X=income
X=X1 X=X2
Linear Probability Model(LPM)
Linear Probability Model(LPM)
chi2(1) = 2.80
Prob > chi2 = 0.0942
3 The Logit and Probit Models
Logit and Probit
Logit and Probit
Pi =1
Pi=0
0
Logit and Probit
Numerical Example on Logit and Probit
Logit: as GPA increases by one point, the log of the odds ratio
increases by 2.8 and statistically significant.
11/3/2022 43