Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stata reports an error saying estimates post: matrix has missin values r(504) while using XTDPD for System GMM estimation

    Dear stata users,

    I m trying to run System "GMM" with a panel data including 21 years and 33 countries. After i collapse the data into 3 years mean i have a panel with T=8 and N=33. I don t get any trouble when i run the XTDPD command with once lagged independent variables in difference equation. However, stata reports r(504) error when i run XTPD with two period lagged independent variables in difference equation. I have already set my data with "XTSET" before estimation. I have checked the dataset for missing variables with the command "MISSTABLE SUM", but there is no missing value in the data set. I m adding the commands and estimation results below. I would be so happy if anyone could help me about this. This is the first time i m using Statalist forum and i m a new user of Stata. My Stata version is IC/15.1. Thank you in advance.

    Code:
    xtset countrynum year, yearly
    panel variable: countrynum (strongly balanced)
    time variable: year, 1 to 8
    delta: 1 year
    Code:
    xtdpd rgdpnapcgr L.rgdpnapcgr L.lngdppc_ini lnpop empgr infl lngrossenrol rtfpnagr lncsh_i lncsh_g open pcf1 pcf2 pcf3 pcf4, dgmmiv(rgdpnapcgr) div(L.lnpop L.empgr L.infl L.lngrossenrol L.rtfpnagr L2.lncsh_i L.lncsh_g L.open L.pcf1 L.pcf2 L.pcf3 L.pcf4) liv(LD.lnpop LD.empgr LD.infl LD.lngrossenrol LD.rtfpnagr LD.lncsh_i LD.lncsh_g LD.open) artests(2) vce(gmm) hascons
    Code:
    Dynamic panel-data estimation                   Number of obs     =        198
    Group variable: countrynum                      Number of groups  =         33
    Time variable: year
    Obs per group:
    min =          6
    avg =          6
    max =          6
    
    Number of instruments =     42                  Wald chi2(14)     =    5373.28
    Prob > chi2       =     0.0000
    One-step results
    
    rgdpnapcgr       Coef.           Std. Err.      z    P>z     [95% Conf. Interval]
    
    rgdpnapcgr
    L1.                  .0513204   .0214318     2.39   0.017     .0093148     .093326
    
    lngdppc_ini    -1.985808   1.032107    -1.92   0.054    -4.008699    .0370844
    lnpop              .0753117   1.558626     0.05   0.961     -2.97954    3.130163
    empgr            .7989424   .0538173    14.85   0.000     .6934625    .9044223
    infl                 -.0021913   .0017714    -1.24   0.216    -.0056631    .0012805
    lngrossenrol   -2.16102   1.772863    -1.22   0.223    -5.635768    1.313727
    rtfpnagr          .9995797   .0297434    33.61   0.000     .9412838    1.057876
    lncsh_i            1.33365   .7317951     1.82   0.068    -.1006423    2.767942
    lncsh_g           1.309182   .8713735   1.50   0.133    -.3986783    3.017043
    open             -.0136306   .0039307    -3.47   0.001    -.0213346   -.0059266
    pcf1               .2224404   .2526802     0.88   0.379    -.2728037    .7176844
    pcf2               .1524264   .2057739     0.74   0.459     -.250883    .5557357
    pcf3               .1090008   .1870005     0.58   0.560    -.2575134    .4755149
    pcf4              -.1685389   .2777331    -0.61   0.544    -.7128858    .3758081
    _cons             23.41154   13.33833     1.76   0.079    -2.731099    49.55418
    
    Instruments for differenced equation
    GMM-type: L(2/.).rgdpnapcgr
    Standard: LD.lnpop LD.empgr LD.infl LD.lngrossenrol LD.rtfpnagr
    LD.lncsh_i LD.lncsh_g LD.open LD.pcf1 LD.pcf2 LD.pcf3
    LD.pcf4
    Instruments for level equation
    Standard: LD.lnpop LD.empgr LD.infl LD.lngrossenrol LD.rtfpnagr
    LD.lncsh_i LD.lncsh_g LD.open _cons
    .
    Code:
     misstable sum
    (variables nonmissing or string)


    After I checked if there is any missing values i also tried to add two period lagged independent variables into difference equation one by one. However, same error message was reported for each time. The command and error message are shown below;

    [CODE]
    Code:
    xtdpd rgdpnapcgr L.rgdpnapcgr lngdppc_ini lnpop empgr infl lngrossenrol rtfpnagr lncsh_i lncsh_g open pcf1 pcf2 pcf3 pcf4, dgmmiv(rgdpnapcgr) div(L2.lnpop L2.empgr L2.infl L2.lngrossenrol L2.rtfpnagr L2.lncsh_i L2.lncsh_g L2.open L2.pcf1 L2.pcf2 L2.pcf3 L2.pcf4) liv(LD.lnpop LD.empgr LD.infl LD.lngrossenrol LD.rtfpnagr LD.lncsh_i LD.lncsh_g LD.open) artests(2) vce(gmm) hascons
    
    
    estimates post: matrix has missing values
    r(504);

  • #2
    Welcome to Statalist, Faruk!
    This forum is devoted to Mata, Stata's special matrix system (help mata will show you what I mean). Post in the General Forum.
    Steve Samuels
    Statistical Consulting
    [email protected]

    Stata 14.2

    Comment

    Working...
    X