Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Diane Robinson <robinson.oudekerk@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | st: margins with MI |
Date | Thu, 23 Jan 2014 14:13:47 -0600 |
I am using Stata version 13.1. I am attempting to get margins on a multiply imputed database, using the helpful code from http://www.ats.ucla.edu/stat/stata/faq/ologit_mi_marginsplot.htm. I am using mlogit as I have an outcome variable with four categories. This is the code I am using: /*margins*/ version 13 program emargins, eclass properties(mi) args outcome mlogit outcomelim adj plan ch30 fam30 parch lenmo iplcat c.ageatstart##c.ageatstart margins, at(adj=(30(30)(180))) atmeans asbalanced predict(outcome(`outcome')) post end forvalues i=1/4 { mi estimate, cmdok: emargins `i' } I am getting this error: invalid numlist an error occurred when mi estimate executed emargins on m=1 r(121); Any help or guidance will be much appreciated. -- Diane Robinson robinson.oudekerk@gmail.com * * 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/