Membuat tabel olahan regressi dgn STATA
DO-FILE SYNTAX STATA
use D:\runcrimedata_davy5.dta, clear
log using D:\tabelolahanOLS22.log
*DATA PAPER
xtset provinsi tahun
*TABEL UNTUK MODEL LSDV PANEL DATA
eststo clear
eststo: qui xi: reg homicide gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear laki15_24
gdp_gr APS2 t2008 i.provinsi
eststo: qui xi: reg mototheft gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
eststo: qui xi: reg robbery gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear laki15_24
gdp_gr APS2 t2008 i.provinsi
eststo: qui xi: reg propercrate gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
eststo: qui xi: reg crate gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear laki15_24
gdp_gr APS2 t2008 i.provinsi
esttab, ar2
eststo clear
log close
TABEL HASIL
----------------------------------------------------------------------------------------------------------------------------------------name:
log: D:\tabelolahanOLS22.log
log type: text
opened on: 11 Apr 2014, 19:09:13
. *DATA PAPER
. xtset provinsi tahun
panel variable:
time variable:
delta:
provinsi (unbalanced)
tahun, 2007 to 2011
1 unit
.
. *TABEL UNTUK MODEL FIXED EFFECT
.
. eststo: qui xi: reg homicide gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
(est1 stored)
.
. eststo: qui xi: reg mototheft gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
(est2 stored)
.
. eststo: qui xi: reg robbery gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
(est3 stored)
.
. eststo: qui xi: reg propercrate gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
(est4 stored)
.
. eststo: qui xi: reg crate gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear laki15_24
gdp_gr APS2 t2008 i.provinsi
(est5 stored)
.
. esttab, ar2
-------------------------------------------------------------------------------------------(1)
(2)
(3)
(4)
(5)
homicide
mototheft
robbery
propercrate
crate
-------------------------------------------------------------------------------------------gini
82.26*
6679.9***
1248.5**
8102.6***
2681.9
(1.71)
(3.14)
(2.34)
(3.05)
(1.08)
ginisq
-114.5*
(-1.74)
jkpp
0.000966
(1.34)
lrgpc
mys
-9392.4***
(-3.21)
-1727.4**
(-2.37)
-11341.8***
(-3.10)
-4171.7
(-1.22)
0.0834***
(2.70)
0.0203*
(2.54)
0.103***
(2.69)
-0.0155
(-0.42)
-0.0179
(-0.08)
-2.529
(-0.26)
-1.229
(-0.49)
-3.483
(-0.28)
-16.27
(-1.40)
0.278
(0.34)
2.042
(0.06)
-2.334
(-0.26)
-0.775
(-0.02)
-29.73
(-0.71)
p0
-0.0518
(-0.35)
-15.58**
(-2.43)
-3.025*
(-1.84)
-18.71**
(-2.33)
4.209
(0.55)
tpt
-0.618***
(-3.07)
-13.96
(-1.60)
-3.896*
(-1.74)
-17.57
(-1.61)
8.013
(0.77)
urban
0.0528*
(1.83)
4.527***
(3.65)
0.964***
(3.01)
5.534***
(3.56)
hh_female
0.561**
(2.31)
17.09
(1.61)
2.457
(0.91)
20.77
(1.55)
-22.41*
(-1.78)
-0.00121
(-0.15)
0.0172
(0.05)
0.0111
(0.13)
0.0142
(0.03)
-0.418
(-1.03)
-0.0800
(-0.93)
-7.195*
(-1.95)
-1.304
(-1.37)
-8.529
(-1.85)
2.827
(0.64)
0.291
(0.61)
-3.479
(-0.17)
0.857
(0.16)
-4.416
(-0.17)
12.03
(0.49)
-0.135
(-1.13)
-7.440
(-1.45)
-2.759**
(-2.08)
-10.08
(-1.57)
0.395
(0.06)
clear
laki15_24
gdp_gr
APS2
t2008
1.034**
(2.21)
47.43**
(2.35)
_cons
9.135*
(1.76)
57.98**
(2.28)
1.093
(0.73)
-52.36**
(-2.16)
-10.18
-650.0
-41.04
-732.7
188.0
(-0.75)
(-1.10)
(-0.27)
(-0.99)
(0.27)
-------------------------------------------------------------------------------------------N
132
128
131
127
132
adj. R-sq
0.376
0.277
0.235
0.266
0.765
-------------------------------------------------------------------------------------------t statistics in parentheses
* p
use D:\runcrimedata_davy5.dta, clear
log using D:\tabelolahanOLS22.log
*DATA PAPER
xtset provinsi tahun
*TABEL UNTUK MODEL LSDV PANEL DATA
eststo clear
eststo: qui xi: reg homicide gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear laki15_24
gdp_gr APS2 t2008 i.provinsi
eststo: qui xi: reg mototheft gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
eststo: qui xi: reg robbery gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear laki15_24
gdp_gr APS2 t2008 i.provinsi
eststo: qui xi: reg propercrate gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
eststo: qui xi: reg crate gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear laki15_24
gdp_gr APS2 t2008 i.provinsi
esttab, ar2
eststo clear
log close
TABEL HASIL
----------------------------------------------------------------------------------------------------------------------------------------name:
log: D:\tabelolahanOLS22.log
log type: text
opened on: 11 Apr 2014, 19:09:13
. *DATA PAPER
. xtset provinsi tahun
panel variable:
time variable:
delta:
provinsi (unbalanced)
tahun, 2007 to 2011
1 unit
.
. *TABEL UNTUK MODEL FIXED EFFECT
.
. eststo: qui xi: reg homicide gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
(est1 stored)
.
. eststo: qui xi: reg mototheft gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
(est2 stored)
.
. eststo: qui xi: reg robbery gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
(est3 stored)
.
. eststo: qui xi: reg propercrate gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear
laki15_24 gdp_gr APS2 t2008 i.provinsi
(est4 stored)
.
. eststo: qui xi: reg crate gini ginisq jkpp lrgpc mys p0 tpt urban hh_female clear laki15_24
gdp_gr APS2 t2008 i.provinsi
(est5 stored)
.
. esttab, ar2
-------------------------------------------------------------------------------------------(1)
(2)
(3)
(4)
(5)
homicide
mototheft
robbery
propercrate
crate
-------------------------------------------------------------------------------------------gini
82.26*
6679.9***
1248.5**
8102.6***
2681.9
(1.71)
(3.14)
(2.34)
(3.05)
(1.08)
ginisq
-114.5*
(-1.74)
jkpp
0.000966
(1.34)
lrgpc
mys
-9392.4***
(-3.21)
-1727.4**
(-2.37)
-11341.8***
(-3.10)
-4171.7
(-1.22)
0.0834***
(2.70)
0.0203*
(2.54)
0.103***
(2.69)
-0.0155
(-0.42)
-0.0179
(-0.08)
-2.529
(-0.26)
-1.229
(-0.49)
-3.483
(-0.28)
-16.27
(-1.40)
0.278
(0.34)
2.042
(0.06)
-2.334
(-0.26)
-0.775
(-0.02)
-29.73
(-0.71)
p0
-0.0518
(-0.35)
-15.58**
(-2.43)
-3.025*
(-1.84)
-18.71**
(-2.33)
4.209
(0.55)
tpt
-0.618***
(-3.07)
-13.96
(-1.60)
-3.896*
(-1.74)
-17.57
(-1.61)
8.013
(0.77)
urban
0.0528*
(1.83)
4.527***
(3.65)
0.964***
(3.01)
5.534***
(3.56)
hh_female
0.561**
(2.31)
17.09
(1.61)
2.457
(0.91)
20.77
(1.55)
-22.41*
(-1.78)
-0.00121
(-0.15)
0.0172
(0.05)
0.0111
(0.13)
0.0142
(0.03)
-0.418
(-1.03)
-0.0800
(-0.93)
-7.195*
(-1.95)
-1.304
(-1.37)
-8.529
(-1.85)
2.827
(0.64)
0.291
(0.61)
-3.479
(-0.17)
0.857
(0.16)
-4.416
(-0.17)
12.03
(0.49)
-0.135
(-1.13)
-7.440
(-1.45)
-2.759**
(-2.08)
-10.08
(-1.57)
0.395
(0.06)
clear
laki15_24
gdp_gr
APS2
t2008
1.034**
(2.21)
47.43**
(2.35)
_cons
9.135*
(1.76)
57.98**
(2.28)
1.093
(0.73)
-52.36**
(-2.16)
-10.18
-650.0
-41.04
-732.7
188.0
(-0.75)
(-1.10)
(-0.27)
(-0.99)
(0.27)
-------------------------------------------------------------------------------------------N
132
128
131
127
132
adj. R-sq
0.376
0.277
0.235
0.266
0.765
-------------------------------------------------------------------------------------------t statistics in parentheses
* p