Professional Documents
Culture Documents
Page 1
___ ____ ____ ____ ____(R)
/__
/
____/
/
____/
___/
/
/___/
/
/___/
Statistics/Data Analysis
User: IDEC 8010
1 . use "D:\LySophea\SopheaANU2013\IDEC8010_International\Essay8010\IDEC8010_U5123854_ExportDataAverage.dta"
2 . drop tech
3 . do "D:\LySophea\SopheaANU2013\IDEC8010_International\Essay8010\IDEC8010_U5123854_CommandFile.do"
4
5
6
7
.
. /* Stochastic Frontier for gravity model, period 1 */
.
. frontier lnexp lnpop lngdppc lndist lntariff lnrer if(year==2000), distribution(tnormal)
Iteration
Iteration
Iteration
Iteration
Iteration
0:
1:
2:
3:
4:
log
log
log
log
log
likelihood
likelihood
likelihood
likelihood
likelihood
=
=
=
=
=
-94.354356
-94.354356
-94.354356
-94.354354
-94.354348
(not concave)
(not concave)
(not concave)
lnexp
-94.354348
Coef.
Std. Err.
Number of obs
=
5)
Wald chi2(
=
Prob > chi2
=
P>|z|
50
118.93
0.0000
lnpop
lngdppc
lndist
lntariff
lnrer
_cons
1.180978
1.434715
-1.65377
-14.68738
.1190483
-3.26529
.1570661
.260287
.2859848
3.964243
.1037709
5.168879
7.52
5.51
-5.78
-3.70
1.15
-0.63
0.000
0.000
0.000
0.000
0.251
0.528
.8731345
.9245615
-2.21429
-22.45716
-.0843389
-13.39611
1.488822
1.944868
-1.09325
-6.917608
.3224354
6.865528
/mu
/lnsigma2
/ilgtgamma
-.0180852
.9376053
-6.252353
6.489084
.2293708
79.3599
-0.00
4.09
-0.08
0.998
0.000
0.937
-12.73646
.4880467
-161.7949
12.70029
1.387164
149.2902
sigma2
gamma
sigma_u2
sigma_v2
2.553858
.0019222
.0049091
2.548949
.5857807
.1522536
.3893636
.5289085
1.629131
5.41e-71
-.7582296
1.512308
4.00348
1
.7680477
3.585591
z =
0.419
Prob<=z = 0.662
u5123854
8
9
10
11
12
Page 2
.
. /* Post estimation period 1 */
.
.
. predict efficiency if e(sample), te
(50 missing values generated)
13 .
14 . predict lnexphat if e(sample), xb
(50 missing values generated)
15 .
16 . gen exphat= exp(lnexphat) if e(sample)
(50 missing values generated)
17 .
18 . list id country efficiency lnexphat exphat if (year==2000)
id
country
effici~y
lnexphat
exphat
1.
3.
6.
8.
10.
1
2
3
4
5
Argentina
Australia
Austria
Bangladesh
Belgium
.9516298
.9516836
.9518002
.9509372
.9523258
12.63664
14.80826
14.55349
11.79584
14.62068
307625.9
2698639
2091696
132698.8
2237080
12.
14.
16.
17.
20.
6
7
8
9
11
Brunei Darussalam
Canada
Chile
China
Colombia
.9514226
.9523504
.9525266
.9526255
.952086
12.51842
15.50855
10.38562
15.98967
9.947107
273325.2
5435987
32390.55
8794763
20891.7
21.
24.
25.
27.
29.
12
13
14
15
16
Czech Republic
Denmark
Egypt, Arab Rep.
Finland
France
.9517397
.9524238
.9519796
.9516099
.9525114
12.34471
14.12094
9.660876
14.07233
16.63242
229741.3
1357202
15691.53
1292810
1.67e+07
32.
34.
36.
38.
39.
17
10
19
20
21
Germany
Hong Kong SAR, China
Hungary
India
Indonesia
.9527214
.9531554
.9518631
.9523787
.9517568
17.21495
17.47008
11.80752
11.15678
14.66242
2.99e+07
3.87e+07
134257.7
70037.16
2332430
41.
44.
46.
48.
50.
22
23
24
25
37
Ireland
Israel
Italy
Japan
Korea, Rep.
.9536458
.952184
.9511632
.9506669
.9513318
13.52098
10.68466
16.48628
18.93071
15.17711
744880.4
43680.54
1.45e+07
1.67e+08
3902414
52.
54.
55.
58.
60.
27
28
29
30
31
Latvia
Luxembourg
Malaysia
Mexico
Netherlands
.9516883
.9531093
.9519452
.9526193
.9531367
10.45863
11.92995
16.51417
12.5718
15.18105
34843.64
151744.5
1.49e+07
288312.2
3917852
62.
64.
66.
68.
70.
32
33
34
35
36
Norway
Panama
Philippines
Poland
Portugal
.9523159
.9535044
.9522021
.9513686
.9521581
14.44998
9.03691
14.73272
13.89638
12.57843
1886024
8407.758
2502287
1084233
290230.1
72.
73.
75.
77.
38
39
40
41
Russian Federation
Saudi Arabia
Singapore
Slovak Republic
.951647
.9493406
.951875
.9504344
13.29218
13.44118
17.4644
11.47637
592541.6
687747.1
3.84e+07
96410.17
u5123854
19
20
21
22
23
24
25
26
Page 3
79.
42
Slovenia
.9518507
10.97222
58233.64
81.
84.
86.
87.
90.
43
44
45
46
47
South Africa
Spain
Sri Lanka
Sweden
Switzerland
.9510872
.9523109
.9531166
.9527817
.95199
12.94645
15.42445
11.62334
14.67167
14.98722
419345
4997532
111674.5
2354100
3227511
92.
94.
96.
97.
99.
48
49
51
50
52
Thailand
United Kingdom
United States
Uruguay
VietNam
.9519987
.9530537
.9531831
.9518331
.9548973
16.83926
16.83894
18.62352
9.809749
11.71525
2.06e+07
2.06e+07
1.22e+08
18210.41
122424.4
.
.
.
.
.
. /* Stochastic Frontier for gravity model, period 2 */
.
. frontier lnexp lnpop lngdppc lndist lntariff lnrer if(year==2011), distribution(tnormal)
Iteration
Iteration
Iteration
Iteration
Iteration
Iteration
Iteration
0:
1:
2:
3:
4:
5:
6:
log
log
log
log
log
log
log
likelihood
likelihood
likelihood
likelihood
likelihood
likelihood
likelihood
=
=
=
=
=
=
=
-93.846776
-93.846776
-93.846776
-93.846773
-93.846765
-93.846753
-93.846753
(not concave)
(not concave)
(not concave)
lnexp
-93.846753
Coef.
Std. Err.
Number of obs
=
5)
Wald chi2(
=
Prob > chi2
=
P>|z|
50
63.47
0.0000
lnpop
lngdppc
lndist
lntariff
lnrer
_cons
1.075232
1.334194
-.6044334
-6.001825
.1069413
-9.032761
.1568476
.3038631
.2892732
4.747466
.1029285
5.067389
6.86
4.39
-2.09
-1.26
1.04
-1.78
0.000
0.000
0.037
0.206
0.299
0.075
.7678165
.7386332
-1.171398
-15.30669
-.0947948
-18.96466
1.382648
1.929755
-.0374685
3.303037
.3086774
.8991388
/mu
/lnsigma2
/ilgtgamma
-.0396422
.9167097
-6.954088
6.003129
.2121799
93.69697
-0.01
4.32
-0.07
0.995
0.000
0.941
-11.80556
.5008448
-190.5968
11.72627
1.332575
176.6886
sigma2
gamma
sigma_u2
sigma_v2
2.501048
.0009538
.0023855
2.498662
.530672
.0892842
.2234712
.5029569
1.650115
1.68e-83
-.43561
1.512885
3.790791
1
.4403811
3.48444
z =
0.447
Prob<=z = 0.673
u5123854
27
28
29
30
31
Page 4
.
. /* Post estimation period 1 */
.
.
. predict efficiency2011 if e(sample), te
(50 missing values generated)
32 .
33 . predict lnexphat2011 if e(sample), xb
(50 missing values generated)
34 .
35 . gen exphat2011= exp(lnexphat2011) if e(sample)
(50 missing values generated)
36 .
37 . list id country efficiency2011 lnexphat2011 exphat2011 if (year==2011)
id
country
eff~2011
lne~2011
exp~2011
2.
4.
5.
7.
9.
53
54
55
56
57
Argentina
Australia
Austria
Bangladesh
Belgium
.9731242
.9728155
.9729028
.9727916
.9733223
15.73754
18.28349
16.93041
13.88585
17.09379
6834785
8.72e+07
2.25e+07
1072872
2.65e+07
11.
13.
15.
18.
19.
58
59
60
61
63
Brunei Darussalam
Canada
Chile
China
Colombia
.9720877
.9733467
.9733138
.97281
.9728516
14.36227
18.16782
14.70939
19.71087
14.55716
1727638
7.77e+07
2444590
3.63e+08
2099390
22.
23.
26.
28.
30.
64
65
66
67
68
Czech Republic
Denmark
Egypt, Arab Rep.
Finland
France
.9728473
.972932
.9727542
.9726367
.9729087
15.64562
16.5337
14.87866
16.42735
18.86706
6234577
1.52e+07
2895479
1.36e+07
1.56e+08
31.
33.
35.
37.
40.
69
62
71
72
73
Germany
Hong Kong SAR, China
Hungary
India
Indonesia
.9730552
.9738169
.9727043
.9730292
.9727628
19.20162
17.15865
14.85722
16.25898
16.89676
2.18e+08
2.83e+07
2834049
1.15e+07
2.18e+07
42.
43.
45.
47.
49.
74
75
76
77
89
Ireland
Israel
Italy
Japan
Korea, Rep.
.9731218
.9729879
.9729262
.9728405
.9731094
16.14095
14.83725
18.62541
19.66367
17.11765
1.02e+07
2778022
1.23e+08
3.47e+08
2.72e+07
51.
53.
56.
57.
59.
79
80
81
82
83
Latvia
Luxembourg
Malaysia
Mexico
Netherlands
.973089
.9733471
.9730851
.9733838
.973376
13.78945
15.00273
17.14532
15.84263
17.54298
974272.1
3277940
2.79e+07
7592188
4.16e+07
61.
63.
65.
67.
69.
84
85
86
87
88
Norway
Panama
Philippines
Poland
Portugal
.9728891
.973732
.9727878
.9731888
.9729391
17.06666
12.75189
15.8261
16.69633
15.2284
2.58e+07
345202.8
7467735
1.78e+07
4107801
71.
74.
76.
78.
90
91
92
93
Russian Federation
Saudi Arabia
Singapore
Slovak Republic
.9729179
.9723613
.973523
.973141
17.773
16.91578
17.56631
14.71926
5.23e+07
2.22e+07
4.26e+07
2468855
u5123854
Page 5
80.
94
Slovenia
.9727886
13.87118
1057246
82.
83.
85.
88.
89.
95
96
97
98
99
South Africa
Spain
Sri Lanka
Sweden
Switzerland
.9729586
.9731625
.9729507
.9730605
.9729155
16.00916
18.08606
13.98732
16.98124
17.50654
8967856
7.16e+07
1187454
2.37e+07
4.01e+07
91.
93.
95.
98.
100.
100
101
103
102
104
Thailand
United Kingdom
United States
Uruguay
VietNam
.9733837
.9732249
.973249
.9732639
.9738299
17.32588
18.72649
20.4639
13.35603
14.73524
3.35e+07
1.36e+08
7.72e+08
631612.6
2508619
38 .
39 .
40 .
end of do-file
41 .