Dear all,
I would like to ask about the Ramsey Reset and other postestimation to test the appropriation of models in Stata. I carried out Heckman model and PPML model as the results below:
heckman lntrade lngdpexp lngdpimp lnstariff binary_ntm LPIexp LPIimp DBIexp DBIimp TABexp
> TABimp,select(lndist lnstariff binary_ntm LPIimp DBIimp TABimp)
Heckman selection model Number of obs = 572
(regression model with sample selection) Censored obs = 12
Uncensored obs = 560
Wald chi2(10) = 499.22
Log likelihood = -1044.587 Prob > chi2 = 0.0000
------------------------------------------------------------------------------
lntrade | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lntrade |
lngdpexp | .5063633 .080751 6.27 0.000 .3480942 .6646323
lngdpimp | .7275791 .0682668 10.66 0.000 .5937787 .8613796
lnstariff | .6063113 2.680599 0.23 0.821 -4.647566 5.860188
binary_ntm | -.0742413 .1681425 -0.44 0.659 -.4037945 .2553118
LPIexp | 2.790873 .3975619 7.02 0.000 2.011666 3.57008
LPIimp | 1.525779 .3875687 3.94 0.000 .7661587 2.2854
DBIexp | .0444199 .0073635 6.03 0.000 .0299877 .058852
DBIimp | -.017263 .0087484 -1.97 0.048 -.0344097 -.0001164
TABexp | -.1215937 .0143852 -8.45 0.000 -.1497883 -.0933992
TABimp | -.0647002 .0143956 -4.49 0.000 -.0929151 -.0364853
_cons | -25.61454 4.627234 -5.54 0.000 -34.68375 -16.54533
-------------+----------------------------------------------------------------
select |
lndist | 1.007029 .5527868 1.82 0.068 -.0764133 2.090471
lnstariff | 1.017142 5.030818 0.20 0.840 -8.843079 10.87736
binary_ntm | -.074987 .3525874 -0.21 0.832 -.7660456 .6160717
LPIimp | 2.020955 .7232403 2.79 0.005 .6034304 3.43848
DBIimp | -.0299147 .0181729 -1.65 0.100 -.0655329 .0057036
TABimp | .000585 .0310995 0.02 0.985 -.0603688 .0615389
_cons | -13.32619 9.255747 -1.44 0.150 -31.46712 4.814745
-------------+----------------------------------------------------------------
/athrho | .2664853 .2707918 0.98 0.325 -.2642568 .7972274
/lnsigma | .3678971 .0303897 12.11 0.000 .3083344 .4274599
-------------+----------------------------------------------------------------
rho | .2603513 .2524367 -.2582728 .6624839
sigma | 1.444693 .0439038 1.361156 1.533358
lambda | .3761279 .3669703 -.3431206 1.095376
------------------------------------------------------------------------------
LR test of indep. eqns. (rho = 0): chi2(1) = 0.78 Prob > chi2 = 0.3762
.xtpoisson tradevalue lngdpexp lngdpimp lndist lnstariff binary_ntm DBIexp DBIimp LPIexp LP
> Iimp TABexp TABimp
Fitting Poisson model:
Random-effects Poisson regression Number of obs = 572
Group variable: pair Number of groups = 52
Random effects u_i ~ Gamma Obs per group:
min = 11
avg = 11.0
max = 11
Wald chi2(11) = 3.02e+06
Log likelihood = -1385085.5 Prob > chi2 = 0.0000
------------------------------------------------------------------------------
tradevalue | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lngdpexp | .9250992 .0009164 1009.55 0.000 .9233032 .9268952
lngdpimp | .1529191 .0021301 71.79 0.000 .1487442 .1570939
lndist | 5.105654 1.137417 4.49 0.000 2.876358 7.33495
lnstariff | -.8488981 .0104352 -81.35 0.000 -.8693508 -.8284454
binary_ntm | -.1983055 .0004042 -490.56 0.000 -.1990978 -.1975132
DBIexp | -.0098621 .0000587 -167.95 0.000 -.0099772 -.009747
DBIimp | -.0040748 .0000569 -71.67 0.000 -.0041862 -.0039633
LPIexp | .10246 .0013376 76.60 0.000 .0998384 .1050816
LPIimp | .105585 .0023256 45.40 0.000 .1010269 .1101431
TABexp | -.0102395 .0000545 -187.91 0.000 -.0103463 -.0101327
TABimp | -.0052576 .0000682 -77.04 0.000 -.0053914 -.0051239
_cons | -60.89114 10.26587 -5.93 0.000 -81.01187 -40.7704
-------------+----------------------------------------------------------------
/lnalpha | .6251173 .162936 .3057687 .944466
-------------+----------------------------------------------------------------
alpha | 1.868465 .3044402 1.357668 2.57144
------------------------------------------------------------------------------
LR test of alpha=0: chibar2(01) = 2.7e+07 Prob >= chibar2 = 0.000
Looking at the results, I see some problems. First, some factors do not meet the expected sign as literature (such as: distance, or tariff). Secondly, i know that the ppml have too much error robust and the database i used do not have the zero-traded value ( only 12/572 observations). thus, I wonder about which models is more appropriate.
Some papers mentioned about Ramsey Reset test. Does is use for the case?
I am a Stata beginner so that i hope to receive all supports.
Thanks
I would like to ask about the Ramsey Reset and other postestimation to test the appropriation of models in Stata. I carried out Heckman model and PPML model as the results below:
heckman lntrade lngdpexp lngdpimp lnstariff binary_ntm LPIexp LPIimp DBIexp DBIimp TABexp
> TABimp,select(lndist lnstariff binary_ntm LPIimp DBIimp TABimp)
Heckman selection model Number of obs = 572
(regression model with sample selection) Censored obs = 12
Uncensored obs = 560
Wald chi2(10) = 499.22
Log likelihood = -1044.587 Prob > chi2 = 0.0000
------------------------------------------------------------------------------
lntrade | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lntrade |
lngdpexp | .5063633 .080751 6.27 0.000 .3480942 .6646323
lngdpimp | .7275791 .0682668 10.66 0.000 .5937787 .8613796
lnstariff | .6063113 2.680599 0.23 0.821 -4.647566 5.860188
binary_ntm | -.0742413 .1681425 -0.44 0.659 -.4037945 .2553118
LPIexp | 2.790873 .3975619 7.02 0.000 2.011666 3.57008
LPIimp | 1.525779 .3875687 3.94 0.000 .7661587 2.2854
DBIexp | .0444199 .0073635 6.03 0.000 .0299877 .058852
DBIimp | -.017263 .0087484 -1.97 0.048 -.0344097 -.0001164
TABexp | -.1215937 .0143852 -8.45 0.000 -.1497883 -.0933992
TABimp | -.0647002 .0143956 -4.49 0.000 -.0929151 -.0364853
_cons | -25.61454 4.627234 -5.54 0.000 -34.68375 -16.54533
-------------+----------------------------------------------------------------
select |
lndist | 1.007029 .5527868 1.82 0.068 -.0764133 2.090471
lnstariff | 1.017142 5.030818 0.20 0.840 -8.843079 10.87736
binary_ntm | -.074987 .3525874 -0.21 0.832 -.7660456 .6160717
LPIimp | 2.020955 .7232403 2.79 0.005 .6034304 3.43848
DBIimp | -.0299147 .0181729 -1.65 0.100 -.0655329 .0057036
TABimp | .000585 .0310995 0.02 0.985 -.0603688 .0615389
_cons | -13.32619 9.255747 -1.44 0.150 -31.46712 4.814745
-------------+----------------------------------------------------------------
/athrho | .2664853 .2707918 0.98 0.325 -.2642568 .7972274
/lnsigma | .3678971 .0303897 12.11 0.000 .3083344 .4274599
-------------+----------------------------------------------------------------
rho | .2603513 .2524367 -.2582728 .6624839
sigma | 1.444693 .0439038 1.361156 1.533358
lambda | .3761279 .3669703 -.3431206 1.095376
------------------------------------------------------------------------------
LR test of indep. eqns. (rho = 0): chi2(1) = 0.78 Prob > chi2 = 0.3762
.xtpoisson tradevalue lngdpexp lngdpimp lndist lnstariff binary_ntm DBIexp DBIimp LPIexp LP
> Iimp TABexp TABimp
Fitting Poisson model:
Random-effects Poisson regression Number of obs = 572
Group variable: pair Number of groups = 52
Random effects u_i ~ Gamma Obs per group:
min = 11
avg = 11.0
max = 11
Wald chi2(11) = 3.02e+06
Log likelihood = -1385085.5 Prob > chi2 = 0.0000
------------------------------------------------------------------------------
tradevalue | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
lngdpexp | .9250992 .0009164 1009.55 0.000 .9233032 .9268952
lngdpimp | .1529191 .0021301 71.79 0.000 .1487442 .1570939
lndist | 5.105654 1.137417 4.49 0.000 2.876358 7.33495
lnstariff | -.8488981 .0104352 -81.35 0.000 -.8693508 -.8284454
binary_ntm | -.1983055 .0004042 -490.56 0.000 -.1990978 -.1975132
DBIexp | -.0098621 .0000587 -167.95 0.000 -.0099772 -.009747
DBIimp | -.0040748 .0000569 -71.67 0.000 -.0041862 -.0039633
LPIexp | .10246 .0013376 76.60 0.000 .0998384 .1050816
LPIimp | .105585 .0023256 45.40 0.000 .1010269 .1101431
TABexp | -.0102395 .0000545 -187.91 0.000 -.0103463 -.0101327
TABimp | -.0052576 .0000682 -77.04 0.000 -.0053914 -.0051239
_cons | -60.89114 10.26587 -5.93 0.000 -81.01187 -40.7704
-------------+----------------------------------------------------------------
/lnalpha | .6251173 .162936 .3057687 .944466
-------------+----------------------------------------------------------------
alpha | 1.868465 .3044402 1.357668 2.57144
------------------------------------------------------------------------------
LR test of alpha=0: chibar2(01) = 2.7e+07 Prob >= chibar2 = 0.000
Looking at the results, I see some problems. First, some factors do not meet the expected sign as literature (such as: distance, or tariff). Secondly, i know that the ppml have too much error robust and the database i used do not have the zero-traded value ( only 12/572 observations). thus, I wonder about which models is more appropriate.
Some papers mentioned about Ramsey Reset test. Does is use for the case?
I am a Stata beginner so that i hope to receive all supports.
Thanks
Comment