Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: if qualifier


From   Chris Witte <[email protected]>
To   [email protected]
Subject   st: if qualifier
Date   Tue, 13 Nov 2007 09:41:38 -0800 (PST)

Stata 9.2 user

quick question about "if" qualifier:

I'm wanting to include observations in my anova if the variable "trt" is not equal to 1, 5, 7, or 8.   Here's my command:

anova avegsi study / trt|study / tank|trt|study time trt*time if sexnum==1 & ttest<10 & trt!=(1 5 7 8), repeated(time)

It's obviously not working, otherwise I wouldn't be bugging you all.  The problem is that it isn't actually taking these observations out of the analysis.  Could someone show me how to do this correctly?...(trying to learn Stata on the fly).


Thank you!


      ____________________________________________________________________________________
Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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