Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: marginsplot error: margins not uniquely identified


From   Molly Moore Jeffery <moor0281@umn.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: marginsplot error: margins not uniquely identified
Date   Sat, 18 Feb 2012 12:56:19 -0600

I'm having trouble using -marginsplot- (Stata version 12.1). I get the following error message: "_marg_save has a problem.  Margins not uniquely identified. r(9999);"

The -margins- command itself works exactly as expected. I have a factor variable with five levels interacted with a binary participation variable. These two variables are included in the model as i.years##i.participation. The margins command -margins years#participation- produces a list of 10 predicted values, as desired. I would like to create a plot like the one used to illustrate -marginsplot- on the Stata site: http://www.stata.com/stata12/margins-plots/ (see the first plot of agegrp#sex). 

I've tried just typing -marginsplot-, as in the example code. 

I've also tried specifying the dimensions: - marginsplot, xdimension(years) plotdimension(participation)-

In both cases, I get the same error message "Margins not uniquely identified"

I haven't found any reference to this error code. Does anyone have any ideas what I might be doing wrong?

Thanks very much for the 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   |   Site index