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]

Re: st: runmlwin error: duplicate fixed part


From   William Buchanan <william@williambuchanan.net>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: runmlwin error: duplicate fixed part
Date   Thu, 30 Aug 2012 05:20:37 -0700

The ## is telling Stata to create the interaction and include the individual variables.  If you only want to create the interaction, you should include the variables inidigiduakly and then use # to generate the interaction only.

HTH,
Billy

Sent from my iPhone

On Aug 30, 2012, at 5:13, Susie Schaffnit <susie.schaffnit@gmail.com> wrote:

> I am using the runmlwin command for a discrete-time event history analysis.  My model includes several interaction terms.  A few variables show up in more than one interaction.
> 
> When I run the model I receive this error regarding my variable called SES:
> "SES SES are duplicated in the fixed part"
> 
> Oddly, SES is only one of multiple variables that is used in more than one interaction, so I am not sure why this variable is being singled out.
> 
> Here is an example of the command I am using:
> 
> runmlwin birthfiveyr2 cons i.yrsince##c.cohort c.prevchildren i.motherdead i.fatherdead ///
>      c.SES##i.liveswparents c.SES##i.partstat c.PartIn##i.yrsince i.actstat1 ///
>      i.aeduc1 i.yrsince##c.SES i.yrsince##i.actstat1, ///
> level2 (acountry: cons) ///
> level1 (yrsince:) ///
> discrete (dist(binomial) link(logit) denom(cons)) ///
> nogroup nopause
> 
> 
> Does anyone have any idea why I am getting this error?  If I run this as a simple regression it works just fine...
> 
> Thank you!
> 
> 
> *
> *   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/

*
*   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