Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: margin and conformability error after constrained mlogit


From   Adrian Gonzalez-Gonzalez <gonzalez-gonzale.1@osu.edu>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: margin and conformability error after constrained mlogit
Date   Sat, 29 May 2004 23:47:17 -0400

I am posting this again because I think it did not work the first time.

Dear Tamas

Below you will find the relevant part of the log file.  If you need more
information on the problem please let me know.

Thanks a lot for your help 

Adrian

Adrian Gonzalez-Gonzalez <gonzalez-gonzale.1@osu.edu> asks:
 
> I am constraining the coefficients of some explanatory variables 
> to be zero
> in a Multinomial model.  After that, when I use margin I get the 
> followingerror (program below):
>        	conformability error
>        	r(503);
> 
> Margin works fine without the constraint option in mlogit. I want 
> to know if there is any way to overcome this problem with margin.  

.   cons 1 [1]: Minutes
.   cons 2 [2]: Minutes
.   cons 3 [3]: Minutes
.   cons 4 [1]: Xpec_95
.   cons 5 [2]: Xpec_95
.   cons 6 [3]: Xpec_95
. 
. mlogit ralt Years Lenders_* Xpec_95  Sho*       Minutes  Savings
HC      Diver Meals  Com
> mercial s_Sol  s_Andes  st_ComBank st_CON               a_* , base(0)
tolerance(1e-8) nolog constraint(1
> -6)

Multinomial logistic regression                   Number of obs   =
1095
(coefficient tolerance 1.00e-08)                  LR chi2(78)     =
330.56
                                                  Prob > chi2     =
0.0000
Log likelihood = -1485.4035                       Pseudo R2       =
0.1001

 ( 1)  [0 Some]Minutes = 0
 ( 2)  [- None]Minutes = 0
 ( 3)  [- Some]Minutes = 0
 ( 4)  [0 Some]Xpec_95 = 0
 ( 5)  [- None]Xpec_95 = 0
 ( 6)  [- Some]Xpec_95 = 0
----------------------------------------------------------------------------
--
        ralt |      Coef.   Std. Err.      z    P>|z|     [95% Conf.
Interval]
-------------+--------------------------------------------------------------
--
0 Some       |
Years_active |   .0582555    .112787     0.52   0.605    -.1628029
.2793139
  Lenders_98 |   -.019533   .1541225    -0.13   0.899    -.3216075
.2825414
  Lenders_99 |   -.074659   .1500681    -0.50   0.619    -.3687871
.2194691
     Xpec_95 |  (dropped)
   Shocks_98 |   1.681319   .5614823     2.99   0.003     .5808336
2.781804
   Shocks_99 |   .0662105   .2956169     0.22   0.823     -.513188
.6456089
   Shocks_00 |   .5112095   .2349184     2.18   0.030      .050778
.971641
     Minutes |  (dropped)
     Savings |  -.1212429   .1902937    -0.64   0.524    -.4942118
.251726
HC_percapita |  -.0534941   .0356075    -1.50   0.133    -.1232835
.0162953
Diversific~n |  -.0920401   .1277774    -0.72   0.471    -.3424791
.1583989
       Meals |  -.2311227   .1274303    -1.81   0.070    -.4808815
.018636
  Commercial |   .7898641   .2408085     3.28   0.001     .3178881
1.26184
       s_Sol |   .0896783   .2517549     0.36   0.722    -.4037523
.5831089
     s_Andes |  -.5438456   .3763749    -1.44   0.148    -1.281527
.1938356
  st_ComBank |   .2640941   .3018811     0.87   0.382     -.327582
.8557702
     st_CONS |  -.1978652   .2824601    -0.70   0.484    -.7514767
.3557463
      a_Cbba |    .220727   .2956641     0.75   0.455    -.3587639
.800218
   a_El_Alto |   .5091531   .2723192     1.87   0.062    -.0245828
1.042889
    a_La_Paz |   1.220488   .3191632     3.82   0.000     .5949394
1.846036
     a_Oruro |   .4828731   .4694661     1.03   0.304    -.4372635
1.40301
       _cons |   .9163165   .5667328     1.62   0.106    -.1944593
2.027092
-------------+--------------------------------------------------------------
--
- None       |
Years_active |  -.0571358   .1515834    -0.38   0.706    -.3542338
.2399622
  Lenders_98 |    .148717   .1835157     0.81   0.418    -.2109671
.5084011
  Lenders_99 |   .3554579   .1849614     1.92   0.055    -.0070598
.7179756
     Xpec_95 |  (dropped)
   Shocks_98 |    1.82865   .6254461     2.92   0.003      .602798
3.054502
   Shocks_99 |  -.4582046   .4026359    -1.14   0.255    -1.247356
.3309473
   Shocks_00 |   .6795599   .3265927     2.08   0.037       .03945
1.31967
     Minutes |  (dropped)
     Savings |   .3821923   .2787452     1.37   0.170    -.1641383
.9285229
HC_percapita |  -.0876023   .0529699    -1.65   0.098    -.1914215
.0162168
Diversific~n |  -.1723209   .1777351    -0.97   0.332    -.5206752
.1760335
       Meals |  -.2435883   .1966397    -1.24   0.215    -.6289951
.1418186
  Commercial |   .1774541   .3376706     0.53   0.599    -.4843682
.8392764
       s_Sol |  -.1034749   .3722126    -0.28   0.781    -.8329982
.6260485
     s_Andes |  -.1555108   .5402949    -0.29   0.773    -1.214469
.9034478
  st_ComBank |   -1.06083    .688097    -1.54   0.123    -2.409476
.2878151
     st_CONS |   .2715307   .3500501     0.78   0.438    -.4145548
.9576162
      a_Cbba |  -1.693176   .5931578    -2.85   0.004    -2.855743
-.5306077
   a_El_Alto |  -.5269323   .3966619    -1.33   0.184    -1.304375
.2505108
    a_La_Paz |   .1846962   .4263213     0.43   0.665    -.6508783
1.020271
     a_Oruro |   .6887172    .557062     1.24   0.216    -.4031042
1.780539
       _cons |   .2651292   .8413033     0.32   0.753    -1.383795
1.914053
-------------+--------------------------------------------------------------
--
- Some       |
Years_active |   .0985826   .1155389     0.85   0.394    -.1278695
.3250346
  Lenders_98 |   .0000276   .1610654     0.00   1.000    -.3156547
.31571
  Lenders_99 |   .1060443   .1509968     0.70   0.482    -.1899039
.4019925
     Xpec_95 |  (dropped)
   Shocks_98 |   1.335496   .5757296     2.32   0.020     .2070867
2.463905
   Shocks_99 |   .2835631    .291261     0.97   0.330    -.2872981
.8544242
   Shocks_00 |   .7343919   .2420185     3.03   0.002     .2600443
1.208739
     Minutes |  (dropped)
     Savings |  -.1873425   .2022542    -0.93   0.354    -.5837535
.2090685
HC_percapita |  -.0435845   .0374755    -1.16   0.245    -.1170352
.0298662
Diversific~n |   .0852393   .1326469     0.64   0.520    -.1747439
.3452225
       Meals |  -.1012533   .1346608    -0.75   0.452    -.3651836
.162677
  Commercial |   .4893479    .257162     1.90   0.057    -.0146802
.9933761
       s_Sol |   .5659261   .2595453     2.18   0.029     .0572266
1.074626
     s_Andes |   .4018979   .3695319     1.09   0.277    -.3223714
1.126167
  st_ComBank |  -.9365005   .3905081    -2.40   0.016    -1.701882
-.1711186
     st_CONS |   .3628787   .2837237     1.28   0.201    -.1932096
.918967
      a_Cbba |   .6032918   .3009157     2.00   0.045     .0135079
1.193076
   a_El_Alto |   .5227558   .2812196     1.86   0.063    -.0284244
1.073936
    a_La_Paz |    .441362   .3424304     1.29   0.197    -.2297892
1.112513
     a_Oruro |   .6394419   .4867045     1.31   0.189    -.3144813
1.593365
       _cons |  -.4507081   .6007765    -0.75   0.453    -1.628208
.7267922
-------------+--------------------------------------------------------------
--
More 30      |
Years_active |   .4993725   .1450233     3.44   0.001      .215132
.783613
  Lenders_98 |   .4776324    .167805     2.85   0.004     .1487407
.806524
  Lenders_99 |   .3273324   .1691395     1.94   0.053     -.004175
.6588397
     Xpec_95 |  -.9274861   .2930325    -3.17   0.002    -1.501819
-.353153
   Shocks_98 |   1.682401   .5911592     2.85   0.004       .52375
2.841052
   Shocks_99 |  -.1132172   .3328221    -0.34   0.734    -.7655366
.5391023
   Shocks_00 |   .7222475   .2819085     2.56   0.010      .169717
1.274778
     Minutes |   .0854093   .0229691     3.72   0.000     .0403907
.1304279
     Savings |  -.6984501   .2513049    -2.78   0.005    -1.190999
-.2059014
HC_percapita |  -.0261392   .0447708    -0.58   0.559    -.1138884
.06161
Diversific~n |  -.0127777   .1575759    -0.08   0.935    -.3216207
.2960654
       Meals |  -.2029651   .1625774    -1.25   0.212     -.521611
.1156808
  Commercial |   .6427312   .2904905     2.21   0.027     .0733803
1.212082
       s_Sol |   -.102539   .3221254    -0.32   0.750    -.7338933
.5288152
     s_Andes |   -.070679   .4488431    -0.16   0.875    -.9503953
.8090373
  st_ComBank |  -1.555873   .6674462    -2.33   0.020    -2.864044
-.2477028
     st_CONS |    .534665    .308369     1.73   0.083    -.0697273
1.139057
      a_Cbba |  -.0221276   .3688144    -0.06   0.952    -.7449905
.7007353
   a_El_Alto |  -.3582093   .3493372    -1.03   0.305    -1.042898
.3264791
    a_La_Paz |   .1724722   .3925242     0.44   0.660    -.5968611
.9418056
     a_Oruro |   1.047995   .5057805     2.07   0.038     .0566829
2.039306
       _cons |  -1.389796   .7271232    -1.91   0.056    -2.814932
.0353391
----------------------------------------------------------------------------
--
(Outcome ralt==0 None is the comparison group)

.         margin, count percent
conformability error
r(503);

end of do-file
r(503);

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index