Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: marginsplot error: margins not uniquely identified
From
Molly Moore Jeffery <[email protected]>
To
[email protected]
Subject
Re: st: marginsplot error: margins not uniquely identified
Date
Mon, 20 Feb 2012 14:30:01 -0600
I followed up with Stata tech support.
For future reference: the problem was solved by clearing all factor variable settings -fvset clear _all-
> Date: Sat, 18 Feb 2012 12:56:19 -0600
> From: Molly Moore Jeffery <[email protected]>
> Subject: st: marginsplot error: margins not uniquely identified
>
> 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/