Professional Documents
Culture Documents
comments Comments Linearity Assumption Scatter Plots
comments Comments Linearity Assumption Scatter Plots
Page 1
Lecture 12 codes - Printed on 12/19/2023 10:02:00 PM
Plots\exports_bn.png", as(png) replace
54 twoway (scatter gdp_bn fdi_bn)(lfit gdp_bn fdi_bn)
55 graph export "C:\Users\test\Documents\Fall 2023 BAF\BBA 5A\Lecture 11\Scatter
Plots\fdi_bn.png", as(png) replace
56 twoway (scatter gdp_bn netexports)(lfit gdp_bn netexports)
57 graph export "C:\Users\test\Documents\Fall 2023 BAF\BBA 5A\Lecture 11\Scatter
Plots\netexports.png", as(png) replace
58 regress gdp_bn con_bn fdi_bn ge_bn imports_bn exports_bn
59 predict resid, r
60 ssc install jb
61 jb resid
62 histogram resid, normal
63 graph export "C:\Users\test\Documents\Fall 2023 BAF\BBA 5A\Lecture 11\Histograms\resid.png",
as(png) replace
64 estat hettest
65 estat imtest
66 estat dwatson
67 vif
68 log close
69 save "C:\Users\test\Documents\Fall 2023 BAF\BBA 5A\Lecture 11\Pakistandata.dta", replace
70
Page 2