Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Testing IIA assumption with micombine mlogit command


From   Leila Ben Aoun <leilabenaoun@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Testing IIA assumption with micombine mlogit command
Date   Tue, 9 Jun 2009 21:25:24 +0200

Hi ,

I have a trouble because I face to more than 2 000 to implement . As a
trick I put  my X variable in global such as M_1 M_2 etc
global M_1 " level_0 level_1 level_2 level_3 scale_kind_ICT  int_emp07
skill nace17_1 nace17_2 nace17_3 "
global  M_2 " level_0 level_1 level_2 level_3  marche_national size
size2 emp20_49 emp50_99 emp100etplus nace17_1 nace17_2 nace17_3 "
global  M_176 " level_0 level_1 level_2 level4 scale_kind_ICT_5
scale_kind_ICT_6  int_emp07  int_emp07_d skill  nace17_2 nace17_3 "
global  M_177 " level_0 level_1 level_2 level_3 scale_kind_ICT
          int_emp07  int_emp07_d skill skill_50pct marche_national
size size2 emp20_49 emp50_99 emp100etplus nace17_1 nace17_2 nace17_3 "
forvalues numero =1(1)176{
foreach var in $M_`numero' {
  logit  inno_d `var'
 estimates store logit_M_`numero', title(M_`numero')
 }
 }

but it doesn t work because the macro $M_i are not recognized so how
could I do ??

Thanks for your help !

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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