Announcement

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

  • -margins- . *(not estimable)

    Hi folks,

    I could not get outputs after -margins. Following are estimations followed by -margins- outputs I tried.
    Please, give me some tips.
    Thank you!
    Stata/SE15.1

    Code:
     svy: logit outcome i.area ib4.regioncat##ib3.racegr  ib2.religiongr, or
    
    Survey: Logistic regression
    
    Number of strata   =        25        Number of obs    =          66,646
    Number of PSUs     =       643        Population size    =  70,192,055,195
            Design df    =             618
            F(  45,    574)    =           43.93
            Prob > F    =          0.0000
    
                
        Linearized
    outcome  Odds Ratio    Std. Err.    t    P>t    [95% Conf. Interval]
                
    area
    1. urban     .0835804    .0125031    -16.59   0.000    .0623046    .1121213
    
    regioncat
    1     1.025258    .8979741    0.03   0.977    .1835878     5.72562
    2     .9092481    .1943731    -0.45   0.656    .5975318    1.383578
    3     1.310006    .5388324    0.66   0.512    .5840765    2.938171
    5     3.232748    1.538087    2.47   0.014    1.269959    8.229132
    6     .8561843    .2605688    -0.51   0.610    .4709844    1.556424
    7     .7128268    .6173313    -0.39   0.696    .1301275    3.904802
    8     .8234594    .4722414    -0.34   0.735    .2670135    2.539517
    9     .3628347    .1297489    -2.84   0.005    .1797727    .7323083
    10      .269039    .085032    -4.15   0.000    .1446299    .5004634
    11     .5037759    .1301818    -2.65   0.008    .3032808    .8368155
    
    racegr
    a     .3689747    .4351744    -0.85   0.398    .0364004     3.74013
    b     .2082834    .056631    -5.77   0.000    .1221136    .3552591
    d     7.914092    2.710165    6.04   0.000    4.039586    15.50477
    e     .5388151    .212633    -1.57   0.118    .2482392    1.169524
    f     1.404861    1.214217    0.39   0.694    .2573349    7.669517
    
    regioncat#racegr
    1#a     2.090985    3.080763    0.50   0.617    .115816    37.75144
    1#b      3.99385    4.043382    1.37   0.172    .5469436    29.16359
    1#c            1    (empty)
    1#d            1    (empty)
    1#e            1    (empty)
    1#f            1    (omitted)
    2#a     1.698745    2.038181    0.44   0.659    .1610051    17.92326
    2#b     4.256129    2.231188    2.76   0.006    1.520247    11.91559
    2#d            1    (omitted)
    2#e            1    (empty)
    2#f     1.244558    1.52971    0.18   0.859    .1113611    13.90902
    3#a     2.477039    4.036146    0.56   0.578    .1009817    60.76069
    3#b     3.606681    1.739313    2.66   0.008    1.398982    9.298292
    3#d            1    (empty)
    3#e            1    (empty)
    3#f     .4644322    .4735265    -0.75   0.452    .0627119    3.439495
    4#a            1    (empty)
    4#d            1    (empty)
    4#e            1    (empty)
    5#a            1    (empty)
    5#b      1.38613    .784563    0.58   0.564    .4561106    4.212478
    5#d            1    (empty)
    5#e     .8733223    .5661241    -0.21   0.835    .244516     3.11919
    5#f      1.12904    1.101669    0.12   0.901    .1661549    7.671946
    6#a            1    (empty)
    6#b     2.508006    1.073442    2.15   0.032    1.082167      5.8125
    6#d            1    (empty)
    6#e            1    (empty)
    6#f     .6278218    .6355393    -0.46   0.646    .0859965    4.583446
    7#a     .4122212    .8005599    -0.46   0.648    .0090949    18.68366
    7#b     2.786496    2.51259    1.14   0.256    .4742658    16.37175
    7#c            1    (empty)
    7#d            1    (empty)
    7#e            1    (empty)
    7#f            1    (omitted)
    8#a     4.461197    7.192535    0.93   0.354    .1881111    105.8006
    8#b     2.358565    1.097496    1.84   0.066    .9457721    5.881785
    8#d            1    (empty)
    8#e            1    (empty)
    8#f     .9118392    .9148982    -0.09   0.927    .1271116    6.541107
    9#a     4.961611    7.200403    1.10   0.270    .2870222     85.7689
    9#b     2.368894    1.049722    1.95   0.052    .9922349    5.655574
    9#d            1    (empty)
    9#e            1    (empty)
    9#f     .1044567    .1222896    -1.93   0.054    .0104824    1.040903
    10#a     1.376784    1.736949    0.25   0.800    .1155801    16.40017
    10#b     2.576282    .9501596    2.57   0.011    1.248663    5.315466
    10#d            1    (empty)
    10#e            1    (empty)
    10#f     .9475733    .8867922    -0.06   0.954    .150816    5.953579
    11#a            1    (omitted)
    11#b     .7989281    .3553497    -0.50   0.614    .3335529    1.913598
    11#d            1    (empty)
    11#e            1    (omitted)
    11#f     .3126073    .3051765    -1.19   0.234    .0459622    2.126169
    
    religiongr
    1     .6818768    .100134    -2.61   0.009    .5110474    .9098099
    3     .6116552    .1030731    -2.92   0.004    .439324    .8515858
    4     1.025557    .575043    0.05   0.964    .3409917    3.084438
    
    _cons    17.47845    2.547655    19.63   0.000    13.1277    23.27113
                
    Note: _cons estimates baseline    odds.

    Code:
    . margins regioncat
    
    Predictive margins        Number    of    obs    =    66,646
    Model VCE    : Linearized
    
    Expression   : Pr(outcome), predict()
    
                            
    Delta-method
    Margin   Std. Err.    t    P>t        [95%    Conf.    Interval]
                            
    regioncat
    1            .  (not estimable)
    2            .  (not estimable)
    3            .  (not estimable)
    4            .  (not estimable)
    5            .  (not estimable)
    6            .  (not estimable)
    7            .  (not estimable)
    8            .  (not estimable)
    9            .  (not estimable)
    10            .  (not estimable)
    11            .  (not estimable)
    Code:
    . margins racegr
    
    Predictive margins    Number    of    obs     =    66,646
    Model VCE    : Linearized
    
    Expression   : Pr(outcome), predict()
    
                    
    Delta-method
    Margin   Std. Err.      t    P>t        [95% Conf.    Interval]
                    
    racegr
    a            .  (not estimable)
    b     .7450445   .0186802    39.88    0.000        .7083602    .7817289
    c            .  (not estimable)
    d            .  (not estimable)
    e            .  (not estimable)
    f     .8649427   .0236629    36.55    0.000        .8184733    .9114121


    Code:
    margins, dydx(*)
    
    Average marginal effects                        Number of obs     =     66,646
    Model VCE    : Linearized
    
    Expression   : Pr(outcome), predict()
    dy/dx w.r.t. : 1.area 1.regioncat 2.regioncat 3.regioncat 5.regioncat 6.regioncat
    7.regioncat 8.regioncat 9.regioncat 10.regioncat 11.regioncat 1.racegr
    2.racegr 4.racegr 5.racegr 6.racegr 1.religiongr 3.religiongr 4.religiongr
    
    
    Delta-method
    dy/dx   Std. Err.      t    P>t     [95% Conf. Interval]
    
    area
    1. urban    -.4167797    .031168   -13.37   0.000    -.4779877   -.3555718
    
    regioncat
    1            .  (not estimable)
    2            .  (not estimable)
    3            .  (not estimable)
    5            .  (not estimable)
    6            .  (not estimable)
    7            .  (not estimable)
    8            .  (not estimable)
    9            .  (not estimable)
    10            .  (not estimable)
    11            .  (not estimable)
    
    racegr
    a            .  (not estimable)
    b            .  (not estimable)
    d            .  (not estimable)
    e            .  (not estimable)
    f            .  (not estimable)
    
    religiongr
    1    -.0341583   .0130972    -2.61   0.009    -.0598787   -.0084378
    3    -.0450536   .0159127    -2.83   0.005     -.076303   -.0138041
    4      .002038   .0450285     0.05   0.964    -.0863895    .0904654
    
    Note: dy/dx for factor levels is the discrete change from the base level.
    Last edited by Messu Melu; 06 May 2019, 10:13.
Working...
X