Statalist


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

st: re: if-sentences in Stata


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: re: if-sentences in Stata
Date   Thu, 27 Nov 2008 14:34:12 -0500

< >
Linn said

I've tried and it really doesn't matter...
I get the same result.


And that result will presumably be meaningless, as a statement like

if shift == 1

will ever only reference the FIRST observation of the variable shift. Given what you have outlined as the logic, I cannot imagine that this could be useful. Please see my proposed solution.

Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index