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: 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.


*   For searches and help try:

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