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]
st: cmp - use of if or bys command
From
David Ashcraft <[email protected]>
To
"[email protected]" <[email protected]>
Subject
st: cmp - use of if or bys command
Date
Wed, 25 Jul 2012 06:29:42 -0700 (PDT)
Hello Statalist,
My data is divided in three categories and I would like to run SUR using cmp command. However cmp command does not allow me to use "if" of "bys".
I want the following:
cmp(y=x if cat==1)(y=x if cat==2)(y=x if cat==3)
I looked in the statalist posting but could not any previous post. Any help would be highly appreciated.
Regards
David
*
* 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/