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, 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 <>
To   "" <>
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–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index