Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: marginsplot error: margins not uniquely identified

From   Molly Moore Jeffery <>
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: (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:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index