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: AW: subsample estimation in xtabond


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: subsample estimation in xtabond
Date   Sat, 19 Jun 2010 22:42:49 +0200

<> 


You can read up on this issue on page 89 of manual [U]:

" Stata uses a double equal sign to denote
equality testing and one equal sign to denote assignment"


Further down, page 145:

" Observe that the relational operator for equality is a pair
of equal signs. This convention distinguishes relational equality from the
=exp assignment phrase."



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Jason Hecht
Gesendet: Samstag, 19. Juni 2010 22:09
An: statalist@hsphsun2.harvard.edu
Betreff: st: subsample estimation in xtabond

I have indicator variables (e.g., China=1, 0=otherwise) and would like
to use the "IF" feature in xtabond to only include observations for
China in the estimation.  However, when I type "china=1" under the
"IF: (expresion)" line , I get an "=exp not allowed error."  Is there
a quick fix here?  Thanks so much.
*
*   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