Announcement

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

  • Help with Bootstrap Command

    Using the following command, no F-statistic is calculated since there are too many predictors compared to the number of clusters.

    Code:
    xtset country year, yearly
           panel variable:  country (strongly balanced)
            time variable:  year, 1995 to 2016
                    delta:  1 year

    Code:
     xtreg lnPATR1 l.lnPATR1 preelection lninflation lnunemployment lngdp lnurbanisation left right l
    > ndependency lndependencyold lndependencyyoung lnpopbelow14 lnpop1564 lnpop65andabove eurozone eu
    >  lngovtexp lnwage plurality proportional lnpit lncorporate i.year, fe robust
    note: lnpopbelow14 omitted because of collinearity
    note: lnpop1564 omitted because of collinearity
    note: plurality omitted because of collinearity
    note: proportional omitted because of collinearity
    
    Fixed-effects (within) regression               Number of obs      =       284
    Group variable: country                         Number of groups   =        19
    
    R-sq:  within  = 0.6444                         Obs per group: min =        11
           between = 0.9165                                        avg =      14.9
           overall = 0.8741                                        max =        18
    
                                                    F(19,18)           =         .
    corr(u_i, Xb)  = 0.6805                         Prob > F           =         .
    
                                        (Std. Err. adjusted for 19 clusters in country)
    -----------------------------------------------------------------------------------
                      |               Robust
              lnPATR1 |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
    ------------------+----------------------------------------------------------------
              lnPATR1 |
                  L1. |   .6470617   .1161222     5.57   0.000      .403098    .8910255
                      |
          preelection |  -.0260988   .0140799    -1.85   0.080    -.0556796    .0034821
          lninflation |  -.0303619   .0132712    -2.29   0.034    -.0582436   -.0024802
       lnunemployment |   .0136915   .0240381     0.57   0.576    -.0368108    .0641938
                lngdp |  -.0012205   .0055211    -0.22   0.828    -.0128199    .0103789
       lnurbanisation |   .2404204   .3315709     0.73   0.478    -.4561843     .937025
                 left |   .0379542   .0141276     2.69   0.015     .0082732    .0676352
                right |   .0174313   .0167837     1.04   0.313      -.01783    .0526925
         lndependency |   1.085823   1.611522     0.67   0.509     -2.29986    4.471505
      lndependencyold |  -1.355576   3.590554    -0.38   0.710     -8.89905    6.187899
    lndependencyyoung |  -.5218162   .5123527    -1.02   0.322    -1.598229    .5545969
         lnpopbelow14 |          0  (omitted)
            lnpop1564 |          0  (omitted)
      lnpop65andabove |   .9734676    3.28618     0.30   0.770    -5.930541    7.877476
             eurozone |   .0104596   .0196805     0.53   0.602    -.0308877    .0518069
                   eu |   .0068003   .0245451     0.28   0.785     -.044767    .0583676
            lngovtexp |   .0489781    .113025     0.43   0.670    -.1884787    .2864348
               lnwage |  -.0455026   .0575385    -0.79   0.439    -.1663865    .0753812
            plurality |          0  (omitted)
         proportional |          0  (omitted)
                lnpit |  -.0948315   .0984233    -0.96   0.348    -.3016111    .1119482
          lncorporate |   .0656962   .0402131     1.63   0.120    -.0187885    .1501808
                      |
                 year |
                1998  |  -.0192213   .0110746    -1.74   0.100    -.0424881    .0040456
                1999  |   .0022892   .0562731     0.04   0.968    -.1159361    .1205146
                2000  |    .054805   .0289899     1.89   0.075    -.0061005    .1157106
                2001  |   .0031405   .0342666     0.09   0.928    -.0688509     .075132
                2002  |   .0136341    .031938     0.43   0.675    -.0534653    .0807334
                2003  |   .0077036   .0366404     0.21   0.836     -.069275    .0846823
                2004  |   .0190082   .0449129     0.42   0.677    -.0753503    .1133666
                2005  |   .0163769   .0509766     0.32   0.752    -.0907209    .1234748
                2006  |    .019386   .0563142     0.34   0.735    -.0989257    .1376976
                2007  |     .03761   .0687671     0.55   0.591    -.1068642    .1820843
                2008  |   .0476016   .0761327     0.63   0.540    -.1123472    .2075504
                2009  |   .0077298   .0654582     0.12   0.907    -.1297928    .1452525
                2010  |   .0203046   .0678281     0.30   0.768     -.122197    .1628062
                2011  |   .0471105   .0738262     0.64   0.531    -.1079926    .2022136
                2012  |   .0290656   .0767886     0.38   0.709    -.1322613    .1903926
                2013  |   .0300476   .0759578     0.40   0.697    -.1295338    .1896291
                2014  |   .0041205   .0781119     0.05   0.959    -.1599866    .1682276
                2015  |  -.0090127   .0744997    -0.12   0.905    -.1655308    .1475053
                      |
                _cons |  -.9338671   2.828782    -0.33   0.745    -6.876917    5.009183
    ------------------+----------------------------------------------------------------
              sigma_u |  .12299845
              sigma_e |  .06524682
                  rho |  .78039831   (fraction of variance due to u_i)
    -----------------------------------------------------------------------------------
    Since I have serial correlation, I need to use -robust-. Hence, I was advised to use the -bootstrap- command but I cannot seem to get the right command (see below). Can somebody, please help me with the command?

    Code:
    xtreg lnPATR1 l.lnPATR1 preelection lninflation lnunemployment lngdp lnurbanisation left right l
    > ndependency lndependencyold lndependencyyoung lnpopbelow14 lnpop1564 lnpop65andabove eurozone eu
    >  lngovtexp lnwage plurality proportional lnpit lncorporate i.year, fe vce(bootstrap) cluster(cou
    > ntry)
    note: lnpop1564 omitted because of collinearity
    note: lnpop65andabove omitted because of collinearity
    (running xtreg on estimation sample)
    
    Bootstrap replications (50)
    ----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx    50
    insufficient observations to compute bootstrap standard errors
    no results will be saved
    r(2000);

  • #2
    Drishta:
    see -help j_robustsingular-.
    Kind regards,
    Carlo
    (Stata 18.0 SE)

    Comment

    Working...
    X