Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | BENSIDOUN Isabelle <isabelle.bensidoun@cee-recherche.fr> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | st: Thread-Index: Ac8mUl+g0V+mU+FJSUOu/4kpYF5yZA== |
Date | Mon, 10 Feb 2014 11:20:54 +0000 |
Dear Stata list members, When I try to do the following, that is to get margins after mlogit with svy local i=2 while `i'<=4{ clear use "$path1\elms`i'" set more off su e9 sca me9=r(mean) gen e9cor=e9/me9 svyset [iw=e9cor] global stat= "e3b agec e5b edu e13" foreach VAR of varlist $stat { tab `VAR', gen(`VAR'd) } svy : mlogit e15ag agecd1 agecd3 edu2-edu5 e5bd1-e5bd2 e5bd4-e5bd5 e3bd2 e3bd4-e3bd11 e13d1 if e3b!=1, base(3) esto FppI`i'p forvalues j=1/ 3{ est res FppI`i'p margins, dydx(*) predict (outcome(`j')) subpop(if e3b!=1 & e15ag !=. & edu!=.) vce(unconditional) post esto mFppI`i'`j'p } local i = `i'+1 } I get this message: svyset characteristics disagree with the svy estimation results r(322); and I really don't understand what is wrong with my code. Is anyone has a suggestion ? Thank you in advance, Isabelle ---------------------------------------------------------------------------------------------------------------------------IMPORTANT : Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de son ou ses destinataires. Si vous avez reçu ce message par erreur, merci d'en avertir immédiatement l'émetteur et de détruire le message. Toute modification, édition, utilisation ou diffusion non autorisée est interdite. L'émetteur décline toute responsabilité au titre de ce message s'il a été modifié, déformé, falsifié ou encore édité ou diffusé sans autorisation. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/