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 on April 23, and its replacement, statalist.org is already up and running.


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

st: cmp - use of if or bys command


From   David Ashcraft <ashcraftd@rocketmail.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index